36 lines
593 B
TOML
36 lines
593 B
TOML
[nats]
|
|
url = "nats://localhost:4222"
|
|
client = "serial-client"
|
|
cluster = "tele-cluster"
|
|
stream = "TELEGRAM"
|
|
consumer = "telegram-consumer"
|
|
|
|
[subscription]
|
|
topic = "Telegram.Serial"
|
|
queue = "tele-queue"
|
|
|
|
[publisher]
|
|
topic = "Telegram.Json"
|
|
|
|
[timeouts]
|
|
server = "5s"
|
|
reconnect_wait = "5s"
|
|
close = "10s"
|
|
ack_wait = "5s"
|
|
|
|
[postgres]
|
|
url = "postgres://user:password@localhost:5432/aviation?sslmode=disable"
|
|
max_conns = 10
|
|
min_conns = 2
|
|
|
|
[app]
|
|
batch_size = 50
|
|
batch_timeout = "2s"
|
|
|
|
[log]
|
|
level = "info"
|
|
format = "json"
|
|
|
|
[hasura]
|
|
endpoint = "http://localhost:8080/v1/graphql"
|
|
secret = "aviation-test" |