From 8331c15d1b5e97edf53c66407a15d2527193a0fa Mon Sep 17 00:00:00 2001 From: OoO Date: Tue, 28 Apr 2026 11:41:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(post-3.5c):=20.env.example=20=E8=A3=9C?= =?UTF-8?q?=E9=BD=8A=20HERMES=5FURL=20+=20DISABLE=5FLOGIN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit P1-19: - 既有 LOGIN_PASSWORD/SECRET_KEY 補上「[必填]」註解 - 新增 DISABLE_LOGIN(auth.py:13 在用,但 .env.example 沒有) - 新增 Hermes 區塊:HERMES_URL、HERMES_TIMEOUT、EMBEDDING_HOST(註解) - 統一格式:每條前面加「[必填] / [預設 X]」標註 注意:Elephant Alpha 區塊既有 ELEPHANT_ALPHA_HERMES_URL 是 Elephant 專用, 與本次新增的 HERMES_URL(Hermes Module 2 用)不同變數,分開保留。 --- .env.example | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.env.example b/.env.example index 5ed7a52..4f82c0d 100644 --- a/.env.example +++ b/.env.example @@ -7,9 +7,15 @@ # ========================================== # 安全設定 # ========================================== +# [必填] 登入密碼(弱密碼會被 LoginManager 拒絕) LOGIN_PASSWORD=your_strong_password_here + +# [必填] Flask session 簽章密鑰(建議 openssl rand -hex 32) SECRET_KEY=your_flask_secret_key_here +# [預設 false] 開發測試用:設 true 可繞過所有 @login_required(生產環境嚴禁開啟) +DISABLE_LOGIN=false + # ========================================== # Telegram Bot 設定 # ========================================== @@ -85,6 +91,18 @@ USE_POSTGRESQL=true GDRIVE_FOLDER_PATH=業績報表/當日業績 GDRIVE_FILE_PATTERN=即時業績_當日 +# ========================================== +# Hermes 3 競價情報分析(Module 2 / ADR-012) +# ========================================== +# [預設 http://192.168.0.111:11434] Hermes Ollama 端點(內網免認證) +HERMES_URL=http://192.168.0.111:11434 + +# [預設 120] Hermes 推理 timeout(秒);批量 300 筆預估 ~90s +HERMES_TIMEOUT=120 + +# [預設 HERMES_URL] Embedding 服務主機(ADR-003 對齊:embedding 走 Hermes 主機) +# EMBEDDING_HOST=http://192.168.0.111:11434 + # ========================================== # Elephant Alpha AI Agent Super Orchestrator Settings # ==========================================