thread-master/deploy/.env.dev.example

37 lines
1.3 KiB
Plaintext
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.

# 巡樓 Dev 環境dev-all + infra compose + dev app 共用同一份)
# 複製成 deploy/.env.dev 再填值dev-all.sh、infra/start-*.sh 都讀這份。
# .env.dev 不要 commit。
# --- infra composeMongo / Redis 容器,僅綁 127.0.0.1---
MONGO_PORT=27017
MONGO_ROOT_USER=haixun
MONGO_ROOT_PASSWORD=CHANGE_ME
MONGO_DATABASE=haixun
REDIS_PORT=6379
REDIS_PASSWORD=CHANGE_ME
# --- dev app / go worker / node workerURI 密碼需 URL-encode 且與上面 MONGO_ROOT_PASSWORD 一致)---
HAIXUN_MONGO_URI=mongodb://haixun:CHANGE_ME@127.0.0.1:27017/?authSource=admin
HAIXUN_MONGO_DB=haixun
HAIXUN_REDIS_ADDR=127.0.0.1:6379
HAIXUN_REDIS_PASSWORD=CHANGE_ME
# JWT / worker secretopenssl rand -base64 48三把可相同但建議不同
HAIXUN_JWT_ACCESS_SECRET=CHANGE_ME
HAIXUN_JWT_REFRESH_SECRET=CHANGE_ME
HAIXUN_WORKER_SECRET=CHANGE_ME
# 機敏資料加密金鑰openssl rand -base64 32
HAIXUN_SECRETS_KEY=CHANGE_ME
# --- node worker / 開發工具 ---
HAIXUN_BACKEND_URL=http://127.0.0.1:8890
HAIXUN_WORKER_POLL_MS=3000
HAIXUN_8D_TARGET_SAMPLES=4
PLAYWRIGHT_HEADLESS=true
# --- Meta Threads OAuthdev 可留空;要 OAuth callback 需搭配 ngrok 並填 https URL---
THREADS_APP_ID=
THREADS_APP_SECRET=
THREADS_REDIRECT_URI=
THREADS_OAUTH_SUCCESS_REDIRECT=