Files
go-caatsm/configs/config.dev.toml
T

70 lines
1.1 KiB
TOML
Raw Normal View History

2024-07-22 12:42:30 +08:00
[nats]
url = "nats://localhost:4222"
mode = "core"
2024-07-22 12:42:30 +08:00
client = "serial-client"
cluster = "tele-cluster"
stream = "TELEGRAM"
consumer = "telegram-consumer"
2024-07-22 12:42:30 +08:00
[nats.stream_limits]
max_msgs = 100000
max_bytes = 67108864
max_age = "24h"
discard = "old"
storage = "file"
replicas = 1
[nats.consumer_rules]
max_deliver = 5
ack_wait = "30s"
max_ack_pending = 1024
deliver_policy = "all"
replay_policy = "instant"
backoff = ["5s", "30s", "2m"]
start_sequence = 0
start_time = ""
2024-07-22 12:42:30 +08:00
[subscription]
topic = "telegram.serial"
queue_group = "tele-queue"
2024-07-22 12:42:30 +08:00
2024-08-12 17:47:34 +08:00
[publisher]
topic = "telegram.json"
2024-08-12 17:47:34 +08:00
2024-07-22 12:42:30 +08:00
[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"
monitor_interval = "30s"
[log]
level = "info"
format = "console"
[telemetry]
enabled = true
endpoint = "localhost:4318"
insecure = true
[monitoring]
disabled = false
addr = ":2112"
enable_metrics = true
enable_health = true
read_timeout = "5s"
write_timeout = "5s"
health_timeout = "2s"
[dlq]
enabled = true
subject = "caatsm.dlq"