thread-master/infra/.env

45 lines
1.6 KiB
Bash
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.

# infra/.env — 本機 docker compose 用(不要 commit
# --- Mongo ---
MONGO_PORT=27017
MONGO_ROOT_USER=haixun
# 注意docker compose 會把 $ 當變數展開;若要結尾 $RFV 請寫 $$RFV 並重建 mongo volume
MONGO_ROOT_PASSWORD=1qaz@WSX3edc
MONGO_DATABASE=haixun
# --- Redis ---
REDIS_PORT=6379
REDIS_PASSWORD=change-me-redis-pass
# --- 初始 admininit 用,若有的話)---
INIT_ADMIN_EMAIL=admin@30cm.net
PASSWORD=Fafafafa54088
# --- API / Gateway本機 go run gateway.go 前 source 此檔或 export 這些變數)---
HAIXUN_API_PORT=8890
HAIXUN_BACKEND_URL=http://127.0.0.1:8890
HAIXUN_MONGO_URI=mongodb://haixun:1qaz%40WSX3edc@127.0.0.1:27017/?authSource=admin
HAIXUN_MONGO_DB=haixun
HAIXUN_REDIS_ADDR=127.0.0.1:6379
HAIXUN_REDIS_PASSWORD=change-me-redis-pass
# --- JWT / Secretsgateway.yaml 用 ${VAR} 讀取;勿在值內使用未跳脫的 $---
HAIXUN_JWT_ACCESS_SECRET=haixun-dev-access-secret-change-me
HAIXUN_JWT_REFRESH_SECRET=haixun-dev-refresh-secret-change-me
HAIXUN_SECRETS_KEY=
HAIXUN_WORKER_SECRET=haixun-dev-worker-secret
# --- Node style-8d workerinfra/start-node-worker.sh---
HAIXUN_NODE_WORKER_ID=local-style-8d
HAIXUN_WORKER_POLL_MS=3000
HAIXUN_8D_TARGET_SAMPLES=4
PLAYWRIGHT_HEADLESS=true
# --- Meta Threads OAuthApp Dashboard 須登記 Redirect URI---
THREADS_APP_ID="2733369680379930"
THREADS_APP_SECRET=31db4afdd8e348d75d76dee8fb9a42d3
# Meta 拒絕 http://(錯誤 1349187本機用 ngrok 時必須 https:// 開頭。見 infra/start-ngrok.sh
THREADS_REDIRECT_URI=https://d4c2-211-75-19-9.ngrok-free.app/api/v1/threads-accounts/oauth/callback
THREADS_OAUTH_SUCCESS_REDIRECT=http://127.0.0.1:5173