73 lines
1.4 KiB
YAML
73 lines
1.4 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: brad@code.30cm.net
|
||
SMTP:
|
||
Enable: true
|
||
Sort: 1
|
||
Host: smtp.mailgun.org
|
||
Port: 587
|
||
Username: postmaster@code.30cm.net
|
||
Password: fc3827251d154c95d4dc383fa3ec0fbf-80ae0276-0941819f
|
||
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
|
||
TOTP:
|
||
Issuer: CloudEP
|
||
Algorithm: SHA1
|
||
Digits: 6
|
||
PeriodSeconds: 30
|
||
Window: 1
|
||
BackupCodeCount: 10
|
||
BackupCodeLength: 12
|
||
EnrollTTLSeconds: 600
|
||
ReplayTTLSeconds: 90
|
||
SecretKEK: "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff"
|