guanghulab/.env.example
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

50 lines
2.6 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.

# ════════════════════════════════════════════════════════════════
# 光湖HoloLake· 全仓库统一环境变量模板
# ZY-SVR-TPL-2026-0426-001 · 测试服务器统一化指令
# Sovereign: TCS-0002∞ · Copyright: 国作登字-2026-A-00037559
# ════════════════════════════════════════════════════════════════
#
# 使用方式:
# 1. cp .env.example .env
# 2. 按实际部署环境填写下方变量
# 3. pm2 start ecosystem.config.js 时会自动读取
#
# 设计原则:
# - 所有路径/端口/密钥可通过环境变量覆盖
# - 默认值面向 /opt/guanghu 标准部署
# - 任何一台格式化后的服务器只需 cp + 填密钥即可启动
# ════════════════════════════════════════════════════════════════
# ─── 部署根路径(统一标准)─────────────────────────────────────
# 所有 ecosystem.config.js 应从此变量读取根路径, 不再硬编码
DEPLOY_ROOT=/opt/guanghu
# ─── GMP-Agent ─────────────────────────────────────────────────
GMP_PORT=9800
# GMP_WEBHOOK_PORT=9801 # 预留, 当前与 GMP_PORT 同进程
GMP_BASE_DIR=/opt/guanghu/guanghu-self-hosted/gmp-agent
GMP_MODULES_DIR=/opt/guanghu/guanghu-self-hosted/gmp-agent/modules
GMP_LOGS_DIR=/opt/guanghu/logs/gmp-agent
GMP_TEMP_DIR=/opt/guanghu/tmp/gmp-agent
GMP_REPO_URL=https://github.com/qinfendebingshuo/guanghulab.git
GMP_TARGET_BRANCH=main
GMP_WEBHOOK_SECRET=
GMP_API_KEY=
GMP_DEBUG=false
# ─── DingTalk Bot ──────────────────────────────────────────────
DINGTALK_BOT_PORT=3005
# DINGTALK_APP_KEY=
# DINGTALK_APP_SECRET=
# ─── 端口规划参考ZY-SVR-TPL-2026-0426-001───────────────────
# 9800 GMP-Agent 主端口
# 9801 Webhook 端口(预留)
# 3000-9000 各模块按需分配
# ─── 服务器对应密钥(仅 GitHub Actions 需要 · 本地不需)─────────
# ZY_TEST_HOST=43.153.203.105
# ZY_TEST_USER=root
# ZY_TEST_PATH=/opt/guanghu
# ZY_TEST_KEY= (SSH 私钥, 配置在 GitHub Secrets, 不写在 .env)