60 lines
1.0 KiB
YAML
60 lines
1.0 KiB
YAML
|
|
# 本機完整開發(需先 make deps-up)
|
|||
|
|
# 啟動:make run-dev 或 go run gateway.go -f etc/gateway.dev.yaml
|
|||
|
|
# 欄位說明:etc/README.md
|
|||
|
|
|
|||
|
|
Name: gateway
|
|||
|
|
Host: 0.0.0.0
|
|||
|
|
Port: 6888
|
|||
|
|
|
|||
|
|
Mongo:
|
|||
|
|
Schema: mongodb
|
|||
|
|
Host: 127.0.0.1
|
|||
|
|
Port: 27017
|
|||
|
|
Database: gateway
|
|||
|
|
AuthSource: ""
|
|||
|
|
ReplicaName: ""
|
|||
|
|
TLS: false
|
|||
|
|
MaxPoolSize: 30
|
|||
|
|
MinPoolSize: 10
|
|||
|
|
MaxConnIdleTime: 30m
|
|||
|
|
|
|||
|
|
Redis:
|
|||
|
|
Host: localhost:6379
|
|||
|
|
Type: node
|
|||
|
|
|
|||
|
|
Notification:
|
|||
|
|
DefaultLocale: zh-tw
|
|||
|
|
Email:
|
|||
|
|
Provider: mock
|
|||
|
|
From: noreply@localhost
|
|||
|
|
SMTP:
|
|||
|
|
Enable: false
|
|||
|
|
Sort: 1
|
|||
|
|
Host: localhost
|
|||
|
|
Port: 1025
|
|||
|
|
SES:
|
|||
|
|
Enable: false
|
|||
|
|
Sort: 2
|
|||
|
|
Region: ap-northeast-1
|
|||
|
|
SMS:
|
|||
|
|
Provider: mock
|
|||
|
|
Mitake:
|
|||
|
|
Enable: false
|
|||
|
|
Sort: 1
|
|||
|
|
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
|