初始化,创建nginx 相关配置

This commit is contained in:
zk
2026-05-27 11:26:22 +08:00
commit bc4c3200d9
7 changed files with 290 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# OfferPie 全局 Nginx 网关
单机部署的全局反向代理服务,统一管理 HTTPS 入口。
## 域名映射
| 域名 | 端口 | 说明 |
|------|------|------|
| www.offerpai.com.cn | 10302 | OfferPie 前端 |
| api.offerpai.com.cn | 10202 | OfferPie Java 后端 API |
| ai.offerpai.com.cn | 10502 | OfferPie Python AI 服务 |
未匹配的域名或 IP 访问返回 444(直接断开连接)。
## 部署
```bash
docker-compose up -d --build
```
## 更新配置
修改 `nginx.conf` 后重新构建:
```bash
docker-compose up -d --build
```
## 证书更新
替换 `certificate/` 目录下的证书文件后重新构建。
## 文件说明
- `nginx.conf` - Nginx 主配置
- `dockerfile` - 镜像构建文件
- `docker-compose.yml` - 容器编排配置
- `certificate/` - SSL 证书目录