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:
+6
-4
@@ -1,4 +1,6 @@
|
||||
# Nginx 反代 + AI 流式输出
|
||||
# Nginx 反向代理(手写配置)
|
||||
|
||||
> 若使用 **宝塔面板**,请直接看 **[BAOTA.md](./BAOTA.md)**,内含完整 `#PROXY-START/` 配置与操作步骤。
|
||||
|
||||
浏览器访问 `https://你的域名/api/ai` 必须能到达 Next.js(3130),且**关闭缓冲**,否则页面上 AI 解读会一直空白或等到超时。
|
||||
|
||||
@@ -14,9 +16,9 @@ curl -s http://127.0.0.1:3130/api/health
|
||||
curl -s https://gate.hyf2.cc/api/health
|
||||
```
|
||||
|
||||
若本地成功、域名 404 或返回 HTML,说明 Nginx 未正确反代 `/api/`。
|
||||
若本地成功、域名 404 或返回 HTML,说明 Nginx 未正确反代。
|
||||
|
||||
## 2. 推荐配置
|
||||
## 2. 推荐配置(非宝塔)
|
||||
|
||||
```nginx
|
||||
server {
|
||||
@@ -49,7 +51,7 @@ server {
|
||||
nginx -t && systemctl reload nginx
|
||||
```
|
||||
|
||||
## 3. 浏览器测试
|
||||
## 3. AI 接口测试
|
||||
|
||||
```bash
|
||||
curl -N -X POST https://gate.hyf2.cc/api/ai \
|
||||
|
||||
Reference in New Issue
Block a user