Files
RiskAgent/deploy.env.example
T

33 lines
1.1 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.
# 部署配置模板:复制为 deploy.env 并按需修改(deploy.env 已被 .gitignore 忽略,勿提交)。
# 所有项均可省略,省略时使用 deploy.sh 内的默认值。
# ---- 目标服务器 ----
SERVER_HOST=152.136.182.184
SERVER_USER=ubuntu
# 服务器登录密码(需要 sshpass)。留空则使用 SSH 密钥免密登录(推荐)。
SERVER_PASS=
# 绑定域名(需提前把 DNS A 记录解析到 SERVER_HOST
DOMAIN=pm.hr8ai.top
# ---- 应用 ----
APP_DIR=/opt/riskagent
APP_NAME=riskagent
BACKEND_PORT=3005
# ---- 数据库(仅 --first-run 使用)----
DB_NAME=riskagent
DB_USER=riskagent
# 留空则首次部署自动生成随机密码并写入服务器 .env
DB_PASS=
PG_SUPER=postgres
# ---- 运行环境(首次写入服务器 .env,之后不覆盖)----
# 留空则自动生成高强度随机值(启用 RBAC)
AUTH_SECRET=
# 通义千问 / DashScope key;留空则关闭 LLM,回退确定性规则
DASHSCOPE_API_KEY=
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
LLM_MODEL=qwen-plus
LLM_TIMEOUT_MS=15000
TARGET_NET_MARGIN=0.05