-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] 使用Nginx做代理自定义域名后,无法实现流式回答 #754
Comments
🧐 Problem Description | Proposed SolutionAfter deployed on the server, if you use ip:port to access, you can stream the answer normally (typewriter effect). However, after configuring the NGINX custom domain name, there is no typewriter effect, and the answer will be returned after waiting for a long time. 📝 Additional Information |NGINX configuration is as follows:
} server { listen 80; }} |
👀 @syusama Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
试试 #531 |
感谢大佬,可以了!!!! |
Thanks man, it’s ok! ! ! ! |
✅ @syusama This issue is closed, If you have any questions, you can comment and reply. |
🧐 问题描述 | Proposed Solution
部署在服务器上后,如果使用ip:port访问,可以正常流式回答(打字机效果),但是配置NGINX自定义域名之后,就没有打字机效果了,会等待很长一段时间然后返回回答
📝 补充信息 | Additional Information
NGINX配置如下:
server {
server_name baize2.xxxxx.com;
location / {
client_max_body_size 64m;
proxy_http_version 1.1;
proxy_pass http://localhost:3210;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_read_timeout 300s;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host:$server_port;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_max_temp_file_size 0;
proxy_redirect off;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}}
The text was updated successfully, but these errors were encountered: