43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
# =============================================================================
|
||
# pbls 应用环境变量样例(PBL Agent OS Phase 0/1)
|
||
# 复制为 .env 后按实际环境修改;build.sh / deploy/start.sh 会读取这些变量
|
||
# cp .env.example .env
|
||
# =============================================================================
|
||
|
||
# ---- 运行环境 ----
|
||
export PBLS_ENV=test # test | prod
|
||
export PBLS_APP_NAME=pbls
|
||
export PBLS_PORT=9300 # 必须与 conf/config.json、projects/pbls/env/*.json 三方同值
|
||
export PBLS_HOST=0.0.0.0
|
||
|
||
# ---- 数据库(mariadb)----
|
||
export DB_HOST=127.0.0.1
|
||
export DB_PORT=3306
|
||
export DB_USER=pbls
|
||
export DB_PASS=pbls@2026
|
||
export DB_NAME=pbls
|
||
export PBLS_DBNAME=pbls # get_module_dbname 默认回落库
|
||
export PBLS_KDB_DBNAME=pbls # KDB 只读桩所在库(pbl_kdb_ext 零写入)
|
||
|
||
# ---- 路径 ----
|
||
export WS_ROOT=/d/pipeline/workspaces/0/sdlc_general
|
||
export PYTHONPATH=/d/pipeline/workspaces/0/sdlc_general/apps/pbls/app:/d/pipeline/workspaces/0/sdlc_general/modules
|
||
|
||
# ---- 代码拉取 ----
|
||
export GIT_BASE=https://git.example.internal/sdlc
|
||
export GIT_BRANCH=main
|
||
|
||
# ---- 日志 ----
|
||
export PBLS_LOG_LEVEL=INFO
|
||
export PBLS_LOG_DIR=logs
|
||
|
||
# ---- PBL 业务开关 ----
|
||
export PBLS_TENANT_REQUIRED=1 # 所有读写 tenant_id 强制打头,缺失即拒绝
|
||
export PBLS_DDL_DIALECT=mariadb # 禁 FK / 禁 ENUM / 禁 TIMESTAMP
|
||
export PBLS_AGENT_FAIL_CLOSED=1 # 工具裁决 fail-closed:13 启用 / 9 禁用
|
||
export PBLS_APPCODES_GROUPS=8
|
||
export PBLS_APPCODES_ITEMS=74
|
||
|
||
# ---- 部署控制 ----
|
||
export SKIP_START=0 # 1 = 只构建不启动(CI 冒烟用)
|