thread-master/backend/etc/gateway.dev.example.yaml

46 lines
1.2 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.

Name: haixun-backend
Host: 0.0.0.0
Port: 8890
Timeout: 120000
# 本地「docker 測試」設定make dev-up 使用)。
# 連線走 compose service namemongo / redis密碼對齊 deploy/.env.dev。
# 純本機 go run不進 docker請改用 etc/gateway.yaml連 127.0.0.1)。
Mongo:
URI: mongodb://haixun:haixun-dev-pass@mongo:27017/?authSource=admin
Database: haixun
TimeoutSeconds: 10
Redis:
Addr: redis:6379
Password: haixun-dev-redis
DB: 0
Auth:
AccessSecret: haixun-dev-access-secret-change-me
RefreshSecret: haixun-dev-refresh-secret-change-me
AccessExpireSeconds: 900
RefreshExpireSeconds: 2592000
# 僅本地開發開啟:允許用 X-Tenant-ID / X-UID header 模擬登入。正式環境必須 false。
DevHeaderFallback: true
Secrets:
# 留空 = 機敏資料不加密(本地測試方便)。正式環境用 ${HAIXUN_SECRETS_KEY}。
EncryptionKey: ""
InternalWorker:
Secret: haixun-dev-worker-secret
# dev 用 gateway 內嵌 go worker勿另開 worker 容器,避免兩個 worker 搶 job
JobWorker:
Enabled: true
WorkerType: go
JobScheduler:
Enabled: true
IntervalSeconds: 60
JobReaper:
Enabled: true
IntervalSeconds: 30