Skip to content

Instantly share code, notes, and snippets.

@famousgarkin
Created March 22, 2017 07:43
Show Gist options
  • Save famousgarkin/b40f866dc5986312207ca785b013a028 to your computer and use it in GitHub Desktop.
Save famousgarkin/b40f866dc5986312207ca785b013a028 to your computer and use it in GitHub Desktop.
Nginx SSE proxy snippet
# http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
proxy_http_version 1.1;
proxy_set_header Connection '';
# also consider:
# http://stackoverflow.com/questions/13672743/eventsource-server-sent-events-through-nginx
# http://serverfault.com/questions/801628/for-server-sent-events-sse-what-nginx-proxy-configuration-is-appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment