68 lines
1.2 KiB
YAML
68 lines
1.2 KiB
YAML
# 本機開發設定範例(可安全提交)
|
|
# 複製為本機專用檔(勿提交):
|
|
# cp etc/gateway.dev.example.yaml etc/gateway.dev.yaml
|
|
# 再依本機環境修改 Port、Mongo、Redis、SMTP/SES/Mitake 帳密等
|
|
|
|
Name: gateway
|
|
Host: 0.0.0.0
|
|
Port: 8888
|
|
|
|
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@example.com
|
|
SMTP:
|
|
Enable: false
|
|
Sort: 1
|
|
Host: localhost
|
|
Port: 1025
|
|
Username: ""
|
|
Password: ""
|
|
SES:
|
|
Enable: false
|
|
Sort: 2
|
|
Region: ap-northeast-1
|
|
AccessKey: ""
|
|
SecretKey: ""
|
|
SessionToken: ""
|
|
SMS:
|
|
Provider: mock
|
|
Mitake:
|
|
Enable: false
|
|
Sort: 1
|
|
User: ""
|
|
Password: ""
|
|
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
|