ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[Bug] nextchat v2.16.1 版本,使用nginx 反代后,chat 无响应
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
### 📦 部署方式
Docker
### 📌 软件版本
2.16.1
### 💻 系统环境
Other Linux
### 📌 系统版本
Debian 6.1.140-1
### 🌐 浏览器
Chrome
### 📌 浏览器版本
137.0.7151.105
### 🐛 问题描述
不用 nginx 反代,直接使用http://x.x.x.x:3000 访问,正常。使用 nginx 反代, 用https://x.x.x.x:3000 访问,对话无响应(见图)。但如果docker 镜像切换为 2.15.8 版本,则一切功能正常。
现象和 #6537 一样,但 #6537 提供的解决方案无效。
反代配置如下:
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
### 📷 复现步骤
使用docker 运行,服务端口 127.0.0.1:3000, 使用 nginx 反代,外网端口3000, 假定域名 nextchat.abc.xyz, 用 https://nextchat.abc.xyz:3000 访问,对话无响应。(排除访问密码错误问题, base_url, api_key 等问题)
### 🚦 期望结果
希望新版本能和 v2.15.8一样能正常使用nginx 反代。
### 📝 补充信息
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the no-response behavior with the Docker 2.16.1 image and the reported nginx configuration, then compare it with 2.15.8 and review the approach from issue #6537. Done means chat requests work through the HTTPS nginx reverse proxy on 2.16.1 without breaking direct access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, nginx
- Domain
- backend, infrastructure, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100