Commit Graph

7 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 46166a3bb4
refactor: 移除冗余BARE变量,直接使用BARE_DOMAIN
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80e337de-dabe-4e86-a711-62d4c47762ec

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-12 00:22:45 +00:00
copilot-swe-agent[bot] 6de783ad4f
fix: guanghulab.com无法打开 + guanghulab.online API不通
根因修复:
1. cn-domain.conf: server_name支持裸域名+www双变体
2. deploy-cn-landing.yml: 域名双变体处理 + setup-ssl动作(certbot) + SSL自动注入
3. deploy-to-zhuyuan-server.yml: push事件部署前端到production(guanghulab.online=主域名=production)
4. zhuyuan-sovereign.conf: /api/chat添加CORS头+X-Forwarded-Proto

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80e337de-dabe-4e86-a711-62d4c47762ec

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-12 00:21:22 +00:00
copilot-swe-agent[bot] 81962bc4dc
fix: improve grep portability in deploy-cn-landing.yml
Use -E (ERE) and [[:space:]] instead of \s and \| for POSIX
compliance across different grep implementations.

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:44:37 +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] 815f8f5f12
fix: remove explicit SSH config path from rsync to fix tilde expansion issue in cn-landing deploy
The rsync `-e "ssh -F ~/.ssh/config"` fails because `~` inside double
quotes is not expanded by bash. rsync passes the literal `~/.ssh/config`
to ssh, which cannot resolve it. Removing `-e` lets rsync use the default
ssh, which reads `$HOME/.ssh/config` automatically.

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/45d1241e-8f50-40ac-898d-54e2a92b3300

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 13:13:41 +00:00
copilot-swe-agent[bot] 6400453e9f
fix: use scp for LLM API keys injection to avoid heredoc variable expansion issue
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98e8a463-34d0-41db-a3b5-9f8c0a2d0366

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 12:58:50 +00:00
copilot-swe-agent[bot] e81a2b3981
feat: add CN domain landing page, Nginx config and deployment workflow for ICP filing
- Landing page with star-field, particles, orbital rings, shooting stars
- ICP备案号 陕ICP备2025071211号 with clickable link to beian.miit.gov.cn
- Nginx config for ZY-SVR-004 Guangzhou server
- GitHub Actions workflow (SG→CN SSH jump deploy)
- LLM API keys injection for 4 domestic models
- Server registry updated with cn_domain section

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98e8a463-34d0-41db-a3b5-9f8c0a2d0366

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 12:57:32 +00:00