chore(center): 下线第一代中心机并清除旧公网信息

- 删除 desktop/controlplane(FastAPI 旧中心机)全部代码,历史见 git

- 移除依赖旧中心机模块的两个失效测试

- AGENTS/README/docs 表述改为「已移除/只有内网一套」,去掉旧公网地址与宝塔部署信息

- agent_cli 去掉旧库拦截逻辑,--base 帮助指向内网生产;electron-shell .env.example 默认地址改内网
This commit is contained in:
2026-11-06 15:40:37 +08:00
parent 4e8b3e7d43
commit dd7bc9c01a
76 changed files with 40 additions and 10922 deletions
@@ -68,7 +68,7 @@
## 二、目标架构
```
┌─ 执行机 ─────────────────────────────┐ ┌─ 中心机服务器(宝塔) ──────────────────────┐
┌─ 执行机 ─────────────────────────────┐ ┌─ 中心机服务器(内网) ──────────────────────┐
│ electron 壳 (Node.js) │ HTTP │ 新后端 cool-admin-midway (Node/TS, 8801) │
│ ├─ /api/plugins 下载 │ ─────► │ ├─ 系统管理:用户/角色/菜单/按钮/部门 │
│ ├─ /api/me/* 票据/管控清单 │ │ ├─ 业务模块:插件/授权/通知/审计/上报/设备... │
@@ -221,15 +221,15 @@ Art Design Pro 是纯前端模板,需与 cool-admin-midway 后端 RBAC API 对
---
## 六、部署(宝塔)
## 六、部署(内网服务器)
| 项 | 值 |
|---|---|
| 运行时 | Node.js ≥ 18(宝塔 Node 项目管理器安装),PM2 守护 |
| 运行时 | Node.js ≥ 18(nvm/系统包安装),PM2 守护 |
| 新服务端口 | 8801(灰度期),稳定后接管 8800 或 nginx 反切 |
| 数据库 | 现有 MySQL 5.7+(37du_center) |
| 前端 | Art Design Pro 构建产物 → `/www/wwwroot/controlplane-web`(复用现有站点/反代配置) |
| nginx | `/api` 反代到 8801;`location /` 静态站 try_files(沿用现有 html_117.72.191.188.conf 改造) |
| nginx | `/api` 反代到 8801;`location /` 静态站 try_files(沿用现有站点配置改造) |
| 回调 | `DINGTALK_CALLBACK` 域名指向新服务地址,同步更新 controlplane/.env → 新服务配置 |
---