Files
gozerosandCursor bd427b57a1 feat: 换到 Gin 主流栈并补齐运维能力
HTTP 用 Gin,配置用 Viper,日志用 zap,数据用 sqlx;保留原有接口与会商行为。
顺带补上就绪探活、请求号、滚动日志、systemd 与 Dockerfile。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 09:51:41 +08:00

39 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.
# eightbf-analysis-go 环境变量样例(export 或 systemd EnvironmentFile)
# 勿把真实密码提交进 Git。
# —— 服务 ——
SERVER_PORT=18097
ANALYSIS_MODE=live
ANALYSIS_AUTH_ENABLED=false
EBA_STRICT_CONFIG=false
EBA_VERSION=0.1.0
EBA_SCHEMA_PATH=schema.sql
# —— 日志(设计要求 §11)——
LOG_LEVEL=info
# LOG_FILE=/var/log/eightbf-analysis/app-go.log
LOG_MAX_MB=100
LOG_MAX_AGE_DAYS=14
LOG_MAX_BACKUPS=14
# —— MySQL ——
# Go 推荐 DSN;也可 EBA_DB_URL(jdbc) + USER/PASSWORD
EBA_DB_DSN=eba:xxx@tcp(127.0.0.1:3306)/eightbf_analysis?parseTime=true&loc=Asia%2FShanghai&charset=utf8mb4&multiStatements=true
# EBA_DB_URL=jdbc:mysql://127.0.0.1:3306/eightbf_analysis?...
# EBA_DB_USER=eba
# EBA_DB_PASSWORD=
# —— DeerFlow(live 必填)——
EBA_DF_BASE_URL=http://127.0.0.1:8001
EBA_DF_USER=admin
EBA_DF_PASSWORD=
EBA_DF_COORDINATOR=roundtable-coordinator
EBA_DF_STREAM_IDLE_TIMEOUT_MS=180000
# —— Worker ——
EBA_WORKER_LIVE_POLL_MS=1000
EBA_WORKER_LIVE_MAX=2
EBA_WORKER_TICK_MS=400
# EBA_WORKER_DEMO_ENABLED=false
# 假进度:ANALYSIS_MODE=demo