feat(web): 移除 Docker 与反代部署,改为 Linux 业务服务并自带管理端托管
需求变更:Web 端只保留业务需求,反向代理交由另外的服务处理, 本项目仅提供 IIS / nginx 反代说明文档,不部署反代。 主要改动: - web-server: 新增管理端静态托管(ADMIN_DIR、SPA 深链接回退), 反代因此只需一条全匹配转发规则;新增 adminDir 配置项 - deploy/install.sh: 删除 nginx 安装与站点配置逻辑,改为原生 Linux 服务部署(systemd → OpenRC → SysVinit → 后台进程四级降级), 打印反代交接指引 - deploy/ctl.sh: 启停/状态/日志脚本 - deploy/proxy/: 新增反代说明文档(README.md、nginx.conf.example、 web.config.example),标注上传上限与超时必须同步调整 - 删除 deploy/nginx/、web-server/admin/nginx.conf、Dockerfile、 docker-compose.yml、.dockerignore - scripts/package-release.sh: 锚定排除规则 + 产物完整性校验 - 文档同步:README.txt、DSH.md、project.yaml、tasks/008、tasks/010
This commit is contained in:
@@ -80,12 +80,15 @@ opendance-web/
|
||||
│ ├── admin/ # React 管理端
|
||||
│ ├── test/ # 单元测试 + 端到端冒烟
|
||||
│ └── scripts/ # migrate.mjs / check-contracts.mjs / check-routes.mjs
|
||||
├── deploy/ # ★ Linux 原生站点部署(不含 MySQL)
|
||||
│ ├── install.sh # 一键部署(systemd + nginx)
|
||||
├── deploy/ # ★ 业务服务部署(不含 MySQL、不含反代)
|
||||
│ ├── install.sh # 一键部署(systemd / OpenRC / SysVinit / 后台进程)
|
||||
│ ├── uninstall.sh
|
||||
│ ├── ctl.sh # 无 init 系统时的进程控制
|
||||
│ ├── .env.example
|
||||
│ ├── systemd/opendance-api.service
|
||||
│ └── nginx/opendance.conf
|
||||
│ ├── openrc/opendance-api
|
||||
│ ├── initd/opendance-api
|
||||
│ └── proxy/ # ★ 反代配置说明(nginx / IIS,仅文档不部署)
|
||||
├── scripts/package-release.sh # 发布产物打包
|
||||
└── THIRD_PARTY.md
|
||||
```
|
||||
@@ -93,7 +96,9 @@ opendance-web/
|
||||
## 6. 硬性约束
|
||||
|
||||
1. **不部署 MySQL**。数据库为部署方提供的现有实例,连接信息只经环境变量注入。
|
||||
**也不使用 Docker**:以 nginx 站点 + systemd 服务的形式直接跑在 Linux 上。
|
||||
**也不使用 Docker**,**也不部署反向代理**:本端只提供业务服务
|
||||
(API + 自带的管理端页面),反代由另外的服务负责,
|
||||
本项目只在 `deploy/proxy/` 下提供 IIS 与 nginx 的配置说明文档。
|
||||
2. **`DB_SYNCHRONIZE` 生产必须为 `false`**,所有表结构变更走 migration;每个
|
||||
migration 必须可逆。
|
||||
3. **绝不把凭证写入仓库**。`.env` 已在 `.gitignore` 中,只提交 `.env.example`。
|
||||
|
||||
Reference in New Issue
Block a user