36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# =============================================================================
|
|
# 测试环境 (test) 环境变量配置模板 (configs/.env.test)
|
|
# 作用域:test 分支阶段集成、长期部署实测与运维验证
|
|
# =============================================================================
|
|
|
|
ENV=test
|
|
COMPOSE_PROJECT_NAME=agent-test
|
|
|
|
# 1. 业务 HTTP 服务
|
|
HTTP_PORT=8081
|
|
APP_PUBLISH_HOST=0.0.0.0
|
|
ADMIN_TOKEN=test-admin-token-secure-key
|
|
ALLOW_INSECURE_ADMIN=0
|
|
|
|
# 2. 对话数据与工作区隔离目录 (禁止跨环境共享)
|
|
DATA_DIR=./data/test
|
|
AUX_FILE_DSN=file:/var/lib/feishu/outbox_test.db?_journal_mode=WAL&_busy_timeout=5000
|
|
|
|
# 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_USER=regkb
|
|
KB_DB_PASSWORD=shared_kb_secret_pass
|
|
KB_DB_NAME=regulations
|
|
KB_DB_HOST=shuimu-kb-shared
|
|
KB_DB_PORT=5432
|
|
|
|
# 5. Cursor / LLM Agent Runner 服务
|
|
CURSOR_RUNNER_PORT=18766
|
|
AGENT_BACKEND=stub
|
|
AGENT_TIMEOUT=60m
|