2026-04-07 12:30:08 +08:00

50 lines
918 B
YAML

app:
name: chatappgateway
env: prod
http_addr: ":8080"
shutdown_timeout: 10s
registry:
enabled: false
provider: ""
endpoint: ""
service_name: "chatappgateway"
instance_id: ""
register_timeout: 3s
deregister_timeout: 5s
grpc:
# Current user instances:
# - 10.0.11.17:9001 (user-1)
# - 10.0.12.6:9001 (user-2)
user:
targets:
- "10.0.11.17:9001"
- "10.0.12.6:9001"
timeout: 3s
retry:
max_attempts: 2
backoff: 200ms
circuit_breaker:
failure_threshold: 3
open_timeout: 10s
health_cache:
ttl: 2s
# Current pay instances:
# - 10.0.22.13:9002 (pay-1)
# - 10.0.21.8:9002 (pay-2)
pay:
targets:
- "10.0.22.13:9002"
- "10.0.21.8:9002"
timeout: 3s
retry:
max_attempts: 2
backoff: 200ms
circuit_breaker:
failure_threshold: 3
open_timeout: 10s
health_cache:
ttl: 2s