2026-05-20 07:01:08 +00:00
|
|
|
|
# 預設:不需 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
|
2026-05-20 07:01:08 +00:00
|
|
|
|
|
|
|
|
|
|
# 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
|