hr-system/docs/01-design/architecture-deploy-t02b.md

24 lines
1.3 KiB
Markdown
Raw Permalink 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.

# 部署参数变更补记(T02b)
## 7.1 端口变更记录
- 设计基线原写应用统一入口端口 **9182**(v1.2 口径)。
- **2026-08 客户最新确认:服务端口改为 9280**(SSH 主机 hrstest.opencomputing.cn,域名 hrstest.opencomputing.cn,Nginx 反代 → 127.0.0.1:9280,预留 `certbot --nginx` 申请 Let's Encrypt 证书)。
- 变更范围:conf/config.json、deploy/hr-web.service、deploy/nginx-hrstest.conf、apps/hr-web.md §3/§4。
- 其余设计基线(架构、模块、数据模型)**不改动**,仅部署章节补记端口变更。
## 7.2 测试环境部署参数(客户确认版)
| 项 | 值 |
|---|---|
| SSH 主机 | hrstest.opencomputing.cn |
| SSH 用户 | hrstest |
| 部署目录 | /opt/hrs |
| 服务端口 | 9280(ahserver 直接监听,Nginx 反代同端口) |
| 域名 | hrstest.opencomputing.cn |
| HTTPS | Nginx 反代 + `certbot --nginx` |
| 数据库 | MariaDB 本地,库 `hrs`,账号 `test` / `test123`(测试环境专用,允许入库) |
| 缓存/会话 | Redis 本地(session_max_time=28800,session_issue_time=86400) |
## 7.3 生产环境部署参数(待补)
- 服务器待客户后续提供;生产账号口令部署时安全配置(环境变量注入,不入库明文),待明确 Q2。
- 一期接受 IP:9280 HTTP 直连,HTTPS 证书补齐后经反向代理升级。