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

133 lines
5.5 KiB
Markdown
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.

---
title: BS-SG-001 新加坡铸渊大脑 · 全量基础设施地图
tcs: ICE-GL-ZY001
created: D131 · 2026-06-12
updated: D131 · 2026-06-12
domain: guanghubingshuo.com · guanghuclip.cn
ip: 43.156.237.110
gatekeeper: :3911 · guanghu-engine v2.1.0
---
# BS-SG-001 · 全量地图
## 域名绑定
| 域名 | SSL | 状态 | Nginx配置 |
|------|-----|------|-----------|
| guanghubingshuo.com | ✅ ECDSA · 64天到期 | 运行中 | sites-enabled/guanghubingshuo.com |
| www.guanghubingshuo.com | ✅ 同上 | 运行中 | 同上 |
| guanghuclip.cn | ⚠️ 证书已获取·HTTPS未启用 | 运行中(HTTP) | sites-enabled/guanghuclip.cn -> sites-available/guanghuclip.cn |
| www.guanghuclip.cn | 同上 | 运行中 | 同上 |
| _ (default) | 无 | 兜底 | sites-enabled/default |
⚠️ 问题: sites-enabled/ 有2个.bak文件造成server_name冲突guanghubingshuo.com.bak.D123fix, .bak.D126
## guanghubingshuo.com 路由表
root: /var/www/html
```
/ → 静态主页
/code/ → Forgejo :3001 (代码仓库)
/juzi/ → Gitea-Juzi :3002 (局子Git)
/juzi/aircraft/ → Python uvicorn :8001 (辰星飞行器)
/console/ → PM2 console-server :3920 (管理台)
/desk/ → PM2 desk-system :3921 (桌面)
/brain-db/ → PM2 persona-brain-db :3914 (人设数据库)
/outline/ → Docker Outline :3090 (Wiki)
/dex/ → Docker DEX :5556 (身份联邦)
/api/ → 条件路由: :3998 (monitor-api) 或 :3090 (Outline Referer)
/guanghu-repo/ → 静态主页
/guanghu-repo/files/ → /opt/zhuyuan/guanghulab/ (文件浏览)
/guanghu-repo/api/ → node :3913
/hli/ → HLIP WebSocket :3010
/auth/ → Docker Outline :3090
/static/ → Docker Outline :3090
```
## guanghuclip.cn 路由表
root: /root/guanghuclip/frontend
```
/ → index.html (SPA单页面应用)
/api/* → proxy 127.0.0.1:3000 (光湖语言世界API·语言膜中间件)
/hli/* → proxy 127.0.0.1:3000
/socket.io/*→ proxy 127.0.0.1:3000 (WebSocket)
/videos/ → /root/guanghuclip/frontend/videos/ (静态视频)
/data/ → /root/guanghuclip/frontend/data/ (JSON数据)
```
⚠️ 注意: 前端Vite public/ 约定在部署时需对齐。videos.json需同时在/public/data/ 和 /data/ 各放一份。
## 端口地图 (所有监听)
| 端口 | 绑定 | 进程 | 用途 |
|------|------|------|------|
| 80/443 | 0.0.0.0 | nginx | HTTP/HTTPS入口 |
| 3000 | * | node (非PM2) | guanghuclip后端·语言膜 |
| 3001 | 127.0.0.1 | forgejo (systemd) | Forgejo Git |
| 3002 | 127.0.0.1 | gitea-juzi (systemd) | 局子Git |
| 3010 | 127.0.0.1 | node (非PM2) | HLIP Bridge WebSocket |
| 3090 | 127.0.0.1 | Docker outline | Outline Wiki |
| 3803 | 127.0.0.1 | PM2 zy-proxy-v2-sub | 代理V2 |
| 3804 | 127.0.0.1 | PM2 zy-cloud-vpn | VPN |
| 3805 | 127.0.0.1 | PM2 zy-proxy-v3-sub | 代理V3 |
| 3900 | 0.0.0.0 | PM2 glada-agent | Glada代理 |
| 3905 | * | PM2 repo-mcp-sg | Repo MCP SG |
| 3906 | * | PM2 hldp-gate | HLDP Gate MCP |
| 3911 | 0.0.0.0 | PM2 engine | Gatekeeper引擎 |
| 3912 | * | PM2 image-studio | 图像工作室 |
| 3914 | * | PM2 persona-brain-db | 人设数据库 |
| 3920 | 127.0.0.1 | PM2 console-server | 控制台 |
| 3921 | * | PM2 desk-system | 桌面系统 |
| 3960 | 0.0.0.0 | PM2 pool-agent | 池代理 |
| 3990 | * | PM2 guanghu-repo | 光湖仓库 |
| 3998 | 127.0.0.1 | node monitor-api | 监控API |
| 5432 | 127.0.0.1 | PostgreSQL 16 (系统) | 数据库 |
| 5432 | Docker内 | PostgreSQL (Docker) | Outline DB |
| 6379 | Docker内 | Redis (Docker) | Outline缓存 |
| 5556 | 127.0.0.1 | Docker DEX | 身份联邦 |
| 8001 | 127.0.0.1 | Python uvicorn | 辰星飞行器 |
| 8443 | * | xray | 代理(VLESS/VMess) |
## PM2进程 (22个·全部在线)
核心服务: engine(3911), console-server(3920), persona-brain-db(3914), image-studio(3912)
应用: desk-system(3921), guanghu-repo(3990), glada-agent(3900), pool-agent(3960)
MCP: repo-mcp-sg(3905), hldp-gate(3906)
代理: zy-cloud-vpn(3804), zy-proxy-v2-sub/v3-sub, zy-swarm-defense等9个
Python: chenxing-aircraft(uvicorn 8001)
## Docker容器
| 容器 | 镜像 | 端口 | 用途 |
|------|------|------|------|
| outline | outlinewiki/outline:0.80.2 | 127.0.0.1:3090 | Wiki |
| outline-dex | dexidp/dex:latest | 127.0.0.1:5556 | 身份验证 |
| outline-postgres | postgres:16-alpine | 内部5432 | Outline数据库 |
| outline-redis | redis:7-alpine | 内部6379 | Outline缓存 |
## SSL证书
| 域名 | 到期 | 剩余 | 状态 |
|------|------|------|------|
| guanghubingshuo.com | 2026-08-16 | 64天 | ✅ HTTPS启用 |
| guanghuclip.cn | 2026-07-23 | 40天 | ⚠️ 证书已获取·HTTPS未启用 |
## guanghuclip.cn 请求路径
```
浏览器 GET guanghuclip.cn
→ DNS: 43.156.237.110
→ Nginx(80) 匹配 guanghuclip.cn server块
→ / → try_files $uri $uri/ /index.html → /root/guanghuclip/frontend/index.html
→ SPA加载 → fetch(/data/videos.json) → Nginx静态文件 → /root/guanghuclip/frontend/data/videos.json
→ JS渲染分镜卡片
→ 视频请求 GET /videos/qinshan-ep01-shot01.mp4 → /root/guanghuclip/frontend/videos/
→ 浏览器播放
```
## 已知问题
1. sites-enabled/ 有2个.bak文件造成server_name冲突 → 需迁移到sites-available/
2. guanghuclip.cn有SSL证书但只监听80 → 需配置HTTPS
3. guanghuclip后端(3000)未通过PM2管理 → 直接node运行
4. 端口3910和9999有Python简单HTTP服务器 → 非标准部署