template-monorepo/etc/gateway.yaml

43 lines
882 B
YAML
Raw Normal View History

# 預設:不需 Docker 即可啟動(僅 health API
# 完整開發Mongo + Redis + Notification複製 gateway.dev.yaml 或 make run-dev
# 欄位說明etc/README.md
2026-05-19 11:00:28 +00:00
Name: gateway
Host: 0.0.0.0
Port: 8888
# Mongo 整段註解 = 不連線Notifier 不注入)
# Mongo:
# Host: 127.0.0.1
# Port: 27017
# Database: gateway
# Redis 留空 Host = 不連線;要 Notification 異步 / Member OTP 請用 gateway.dev.yaml
Redis:
Host: ""
Type: node
Notification:
DefaultLocale: zh-tw
Email:
Provider: mock
From: noreply@example.com
SMS:
Provider: mock
Async:
QueueRedisKey: notification:queue
Worker: 2
MaxRetry: 5
BackoffSeconds: [1, 5, 30, 300, 1800]
RatePerTenant:
Email: 100
SMS: 50
Member:
OTP:
Length: 6
TTLSeconds: 300
MaxAttempts: 5
ResendCooldownSeconds: 60
DailyVerifyLimit: 10