forked from mtusi2026/mtusi2026lab4
21 lines
450 B
TOML
21 lines
450 B
TOML
[basic]
|
|
threads = 1
|
|
grace_period = "8s"
|
|
graceful_shutdown_timeout = "10s"
|
|
|
|
[upstreams.api]
|
|
addrs = ["api.messenger.svc.cluster.local:8080"]
|
|
discovery = "dns"
|
|
update_frequency = "1s"
|
|
health_check = "http://api/health/ready?connection_timeout=1s&read_timeout=1s&check_frequency=1s&success=1&failure=1"
|
|
connection_timeout = "1s"
|
|
read_timeout = "25s"
|
|
|
|
[locations.api]
|
|
path = "/"
|
|
upstream = "api"
|
|
|
|
[servers.http]
|
|
addr = "0.0.0.0:8080"
|
|
locations = ["api"]
|