Streaming output is not possible when using other nginx reverse proxy dify #39821
Replies: 1 comment
|
Your nginx config for the 1. Dify already runs its own Nginx internally. When you proxy to 2. Missing proxy_set_header Host $http_host;3. The proxy_set_header Connection "";4. Check for upstream buffering at Recommended location /dify/ {
proxy_pass http://192.168.2.181/;
proxy_buffering off;
proxy_cache off;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Connection "";
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_read_timeout 3600s;
proxy_send_timeout 3600s;
chunked_transfer_encoding on;
gzip off;
}The key changes are: adding To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Self Checks
Content
When using other nginx reverse proxy dify and calling /v1/chat-messages streaming output is not possible , my nginx config is:
server {
listen 8000;
server_name localhost;
}
All reactions