Add Baota panel reverse proxy and deployment guide.
Document Docker setup, nginx proxy_buffering for AI streaming, Host header fix, and verification steps; link from README and DOCKER. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-2
@@ -72,9 +72,11 @@ docker compose up -d --build # 重建并启动
|
||||
|
||||
```bash
|
||||
ufw allow 3130
|
||||
# 或使用 Nginx 反代 80/443 → 3130
|
||||
# 或使用 Nginx / 宝塔 反代 80/443 → 3130(推荐,不必对公网开放 3130)
|
||||
```
|
||||
|
||||
域名与 AI 流式反代完整说明见 [BAOTA.md](./BAOTA.md)。
|
||||
|
||||
## 从 PM2 迁移
|
||||
|
||||
```bash
|
||||
@@ -90,7 +92,8 @@ docker compose up -d --build
|
||||
|------|------|
|
||||
| 构建慢 / 超时 | Dockerfile 使用 `.npmrc` 国内镜像;重试 `docker compose build` |
|
||||
| 容器反复重启 | `docker compose logs zhimingge` 查看报错 |
|
||||
| AI 失败 | 检查 `.env.local` 中 `OPENAI_API_KEY` |
|
||||
| AI 失败 | 检查 `.env.local` 中 `OPENAI_API_KEY`;`docker exec zhimingge printenv OPENAI_API_KEY` |
|
||||
| 页面 AI 空白、curl 本地正常 | Nginx/宝塔未关缓冲或未反代域名,见 [BAOTA.md](./BAOTA.md) |
|
||||
| 卦辞 404 | 确认镜像内 `/app/content/zhouyi/docs` 存在 |
|
||||
|
||||
构建在镜像内完成,**无需**在宿主机单独 `npm install` / `npm run build`。
|
||||
|
||||
Reference in New Issue
Block a user