Created
March 22, 2017 07:43
-
-
Save famousgarkin/b40f866dc5986312207ca785b013a028 to your computer and use it in GitHub Desktop.
Nginx SSE proxy snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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