Commit Graph

6 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 9dffe85f22
fix: remove PORT/ZY_SITE_MODE from .env.app to prevent PM2 port conflict
The deploy workflow was writing PORT=3800 and ZY_SITE_MODE=production
into .env.app, which gets loaded by ecosystem.config.js's loadEnvFile().
Since ...appEnv is spread first and instance-specific values override it,
this is now safe — but removing them from .env.app eliminates the root
cause entirely (belt-and-suspenders fix).

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80f409c9-7f98-443e-9c31-21111194a523

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:11 +00:00
copilot-swe-agent[bot] 3fc1d35390
fix: resolve HTTP 502 — clean conflicting Nginx configs + fix PM2 port override bug
Root causes found:
1. CN server (www.guanghulab.com): conflicting Nginx configs in sites-enabled
   and conf.d override cn-domain.conf, causing requests to proxy to a non-
   responsive backend → 502
2. SG server: ecosystem.config.js spreads .env.app AFTER PORT/ZY_SITE_MODE,
   causing .env.app's PORT=3800 to override preview's PORT=3801 → both
   instances fight for port 3800 → preview fails → 502 on preview domain

Fixes:
- deploy-cn-landing.yml: clean ALL conflicting Nginx site configs from both
  sites-enabled and conf.d before installing cn-domain.conf
- deploy-cn-landing.yml: enhanced health check diagnostics to detect config
  conflicts and validate correct service identity
- ecosystem.config.js: move ...appEnv BEFORE instance-specific PORT and
  ZY_SITE_MODE to ensure PM2 config takes priority over .env.app

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80f409c9-7f98-443e-9c31-21111194a523

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:36:16 +00:00
copilot-swe-agent[bot] 3fedcab0d9
fix: ecosystem.config.js .env.app path + portal reconnect button + /api/chat/reconnect endpoint
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/37db3285-91fb-4df3-83a0-7315b0efa428

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:48:27 +00:00
copilot-swe-agent[bot] a5ccbadbd6
修复聊天功能: API密钥注入主应用 + Nginx路由修正 + 聊天UI放大居中
核心修复:
1. 部署工作流: 为主应用写入.env.app (含LLM API密钥)
2. PM2配置: 加载.env.app环境变量到主应用进程
3. 聊天引擎: /api/chat 优先使用 domestic-llm-gateway (四路自动降级)
4. Nginx: /api/chat 路由到主应用3800 (原来路由到不存在的3721)
5. 前端UI: 聊天面板放大居中 + 背景遮罩 + 增大超时至60秒

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5a0f8fc3-ded6-4e1f-8c98-b1e59f82aad6

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:14:05 +00:00
copilot-swe-agent[bot] c7fb9852d4
双域名架构实现 + 代码审查修复 + 天眼扫描通过
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/deed974d-4a99-48a9-b00a-1d105d5892bc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 04:35:24 +00:00
copilot-swe-agent[bot] 44253d18cc
铸渊主权服务器架构 · ZY-SVR-001 · 六层架构+部署工作流+天眼扫描通过
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/507c2a49-8ad5-4ed9-8db0-0d5699ac51a4

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 03:50:23 +00:00