This repository was archived by the owner on Nov 26, 2018. It is now read-only.
This repository was archived by the owner on Nov 26, 2018. It is now read-only.
Can't get SSE to work behind Nginx #2
Closed
Description
I'm trying to serve the web interface through a Nginx reverse proxy, but the EventSource request is failing after not receiving anything for a couple of minutes with a 504 timeout.
Everything works in static interfaces (like the admin one) or when directly accessing the Django server.
These are the relevant Nginx config parts:
location ^/eventsource {
proxy_pass http://localhost:8000;
proxy_buffering off;
proxy_cache off;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
chunked_transfer_encoding off;
}
location / {
proxy_pass http://localhost:8000;
}
Have you managed to get it working? How's your deployment setup?