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>
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# =============================================================================
|
||
# 测试环境 (test) 环境变量配置模板 (configs/.env.test)
|
||
# 作用域:test 分支阶段集成、长期部署实测与运维验证
|
||
# 根 .env 提供公共模型、检索、认证配置;本文件只覆盖 test 差异。
|
||
# =============================================================================
|
||
|
||
ENV=test
|
||
|
||
# 1. 业务 HTTP 服务
|
||
HTTP_PORT=8081
|
||
APP_PUBLISH_HOST=0.0.0.0
|
||
|
||
# 2. 对话数据与工作区隔离目录 (禁止跨环境共享)
|
||
DATA_DIR=./data/test
|
||
|
||
# 3. 测试环境专属数据库 (禁止与 dev/main 共享)
|
||
SYSTEM_DB_USER=app
|
||
SYSTEM_DB_PASSWORD=test_secret_db_pass
|
||
SYSTEM_DB_NAME=agent_system_test
|
||
SYSTEM_DB_PUBLISH_PORT=5434
|
||
|
||
# 4. 共享知识库连接 (只读检索共享数据)
|
||
# KB_DB_PASSWORD 必须在仓库根 .env;config.Load("") 分层合并根 .env + 本文件。勿依赖代码默认口令。
|
||
KB_DB_USER=regkb
|
||
KB_DB_NAME=regulations
|
||
KB_DB_HOST=shuimu-kb-shared
|
||
KB_DB_PORT=5432
|
||
|
||
# 5. Cursor / LLM Agent Runner 服务
|
||
PI_AGENT_RUNNER_PORT=18866
|
||
AGENT_BACKEND=pi-agent
|
||
AGENT_TIMEOUT=60m
|
||
# app 与 pi-agent 容器共享(test 环境建议设置非空值)
|
||
# RUNNER_AUTH_TOKEN=test-runner-shared-secret
|
||
|
||
# 6. Phase 5 soak 探测示例
|
||
# scripts/test-soak.sh http://127.0.0.1:8081 300 10
|