thread-master/deploy/.env.example

30 lines
1.1 KiB
Plaintext
Raw Permalink 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.

# 巡樓全棧 docker compose 環境變數範本。
# 複製成 deploy/.env 後填入實際值deploy/.env 不要 commit。
# cp deploy/.env.example deploy/.env
# === Web對外 ===
WEB_PORT=80
# === Mongo ===
MONGO_PORT=27017
MONGO_ROOT_USER=haixun
# 建議只用英數字。若密碼含 @ : / $ 等字元HAIXUN_MONGO_URI 會解析錯誤,
# 需自行對 compose 內的 URI 做 URL-encode。
MONGO_ROOT_PASSWORD=Fafafa54088
MONGO_DATABASE=haixun
# === Redis ===
REDIS_PASSWORD=Fafafa54088
# === JWT / Secrets ===
# openssl rand -base64 48 # 三把 secret 各產一把
# openssl rand -base64 32 # HAIXUN_SECRETS_KEY機敏資料落地加密需 base64 的 32 bytes
HAIXUN_JWT_ACCESS_SECRET=tI3g0UYzmAIC+N8vODem0bG9T9X5g0EEg15d0mH/wEJjbloca7YNo8pEHAsRW1BF
HAIXUN_JWT_REFRESH_SECRET=tI3g0UYzmAIC+N8vODem0bG9T9X5g0EEg15d0mH/wEJjbloca7YNo8pEHAsRW1BF
HAIXUN_WORKER_SECRET=tI3g0UYzmAIC+N8vODem0bG9T9X5g0EEg15d0mH/wEJjbloca7YNo8pEHAsRW1BF
HAIXUN_SECRETS_KEY=+m0Ws4xJBrp+UzuWRyZ43/1P3sB91HmGhtW1FZrGr44=
# === 初始 admininit 容器建立,冪等) ===
INIT_ADMIN_EMAIL=admin@30cm.net
INIT_ADMIN_PASSWORD=Fafafa54088