Files
agent/scripts/deploy.conf.example
T
kicer 295756b798 部署脚本:init_repos.sh 随仓库移动(路径按自身位置推导)+ deploy.conf 改成模板
- init_repos.sh 现在位于 agent/scripts/:AGENT_DIR / DEST_ROOT 全部按脚本位置推导,不再写死 /root/workspace/tools
- 仓库已存在就 pull 到最新后继续;有未提交改动则跳过 pull(不覆盖本地改动)并继续,不再计为失败
- 部署配置搜索顺序:<两仓库父目录>/deploy.conf → scripts/deploy.conf(已 gitignore)→ /root/deploy.conf;找不到时提示从模板复制
- scripts/deploy.conf(原被 git 跟踪)改为 scripts/deploy.conf.example 模板;真身 deploy.conf 进 .gitignore
  (原文件里 4 个 key 均为空、只有默认 admin 密码,无密钥泄漏)
- init.sh: docker 缺失时提示可先跑 scripts/init_host.sh
2026-09-15 21:33:26 +08:00

26 lines
1.1 KiB
Plaintext
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.
# 部署配置模板 —— 复制到仓库外再填(里面有密钥,别提交进仓库)
#
# cp scripts/deploy.conf.example ../../deploy.conf # 推荐:放在两个仓库的父目录
# chmod 600 ../../deploy.conf && vi ../../deploy.conf
#
# init_repos.sh 会按顺序找第一个存在的:
# 1) <两个仓库的父目录>/deploy.conf 2) scripts/deploy.conf(已 gitignore) 3) /root/deploy.conf
# 也可以直接指定:CONF=/path/to/xxx.conf ./scripts/init_repos.sh
# ---------- 模型平台 key(填几个启用几个,可 0~3 个)----------
BIGMODEL_KEY=
DEEPSEEK_KEY=
QWEN_KEY=
# ---------- 智谱 key:image-gen / video-gen 用 ----------
# 留空 = 这两个服务照常注册但 enable: false(工具不加载,生图/图生视频用不了)
ZHIPU_KEY=
# ---------- 登录(默认 admin/admin,记得改)----------
AUTH_USER=admin
AUTH_PASSWORD=admin
# ---------- 对外地址与端口 ----------
PUBLIC_IP= # 留空则自动探测(curl ifconfig.me / api.ipify.org);探测不到则图生视频不可用
AGENT_PORT=8090