Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Add nats #245

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DATABASE_URL=postgres://postgres:postgres@localhost/event_dev
RUST_LOG=info
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ App.toml
deploy
docker/backend_db/data
/benchmarks/target
.env
nats.creds
11 changes: 11 additions & 0 deletions App.toml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ id = "event.dev.svc.example.org"
agent_label = "alpha"
broker_id = "mqtt-gateway.dev.svc.example.org"

http_addr = "0.0.0.0:8080"

[id_token]
algorithm = "ES256"
key = "data/keys/svc.private_key.p8.der.sample"

[authn."svc.example.org"]
audience = ["svc.example.org"]
algorithm = "ES256"
key = "data/keys/svc.public_key.p8.der.sample"

[authz."svc.example.org"]
type = "local"
trusted = ["cron.svc.example.org"]
Expand All @@ -31,3 +38,7 @@ id = "kruonis.dev.svc.example.org"
max_history_size = 10
max_history_lifetime = 86400
max_deleted_lifetime = 86400

[nats]
namespace = "ns01"
url = "nats://0.0.0.0:4222"
Loading