Files
Agent-System/configs/.env.main.example
T
weichenandCursor 55a539c551 chore(infra): drop CURSOR_RUNNER_PORT from env examples
Placeholder cursor-agent service is gone; keep CURSOR_API_KEY/MODEL/BIN
for the local cursor-cli subprocess backend.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 02:26:47 +00:00

39 lines
1.3 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.
# =============================================================================
# 生产/主分支环境 (main) 环境变量配置模板 (configs/.env.main)
# 作用域:main 分支正式线上发布与生产运营
# 根 .env 提供公共模型与检索配置;本文件覆盖生产端口、数据库和生产密钥。
# =============================================================================
ENV=main
# 1. 业务 HTTP 服务
HTTP_PORT=8000
APP_PUBLISH_HOST=0.0.0.0
AUTH_REGISTRATION_ENABLED=false
AUTH_REQUIRE_APPROVAL=true
# 2. 对话数据与工作区隔离目录 (禁止跨环境共享)
DATA_DIR=./data/main
# 3. 生产环境专属数据库 (禁止与 dev/test 共享)
SYSTEM_DB_USER=app
SYSTEM_DB_PASSWORD=
SYSTEM_DB_NAME=agent_system_main
SYSTEM_DB_PUBLISH_PORT=5435
# 4. 共享知识库连接 (只读检索共享数据)
# KB_DB_PASSWORD 必须在仓库根 .env;Load("") 分层合并;生产禁止弱口令/空口令。
KB_DB_USER=regkb
KB_DB_NAME=regulations
KB_DB_HOST=shuimu-kb-shared
KB_DB_PORT=5432
KB_DB_PASSWORD=
# 5. Cursor / LLM Agent Runner 服务
PI_AGENT_RUNNER_PORT=18867
AGENT_BACKEND=pi-agent
AGENT_TIMEOUT=60m
# 生产必填(不可使用 shared_kb_secret_pass / admin-secret-password-123 等默认值)
RUNNER_AUTH_TOKEN=
ADMIN_PASSWORD=