2026-05-20 07:01:08 +00:00
|
|
|
|
# 本機完整開發(需先 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
|
2026-05-20 09:32:22 +00:00
|
|
|
|
From: brad@code.30cm.net
|
2026-05-20 07:01:08 +00:00
|
|
|
|
SMTP:
|
2026-05-20 09:32:22 +00:00
|
|
|
|
Enable: true
|
2026-05-20 07:01:08 +00:00
|
|
|
|
Sort: 1
|
2026-05-20 09:32:22 +00:00
|
|
|
|
Host: smtp.mailgun.org
|
|
|
|
|
|
Port: 587
|
|
|
|
|
|
Username: postmaster@code.30cm.net
|
|
|
|
|
|
Password: fc3827251d154c95d4dc383fa3ec0fbf-80ae0276-0941819f
|
2026-05-20 07:01:08 +00:00
|
|
|
|
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
|
2026-05-20 13:03:59 +00:00
|
|
|
|
TOTP:
|
|
|
|
|
|
Issuer: CloudEP
|
|
|
|
|
|
Algorithm: SHA1
|
|
|
|
|
|
Digits: 6
|
|
|
|
|
|
PeriodSeconds: 30
|
|
|
|
|
|
Window: 1
|
|
|
|
|
|
BackupCodeCount: 10
|
|
|
|
|
|
BackupCodeLength: 12
|
|
|
|
|
|
EnrollTTLSeconds: 600
|
|
|
|
|
|
ReplayTTLSeconds: 90
|
|
|
|
|
|
SecretKEK: "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff"
|