template-monorepo/etc/gateway.dev.yaml

73 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 本機完整開發(需先 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"