Created
March 22, 2017 07:40
-
-
Save famousgarkin/2304c6d92ff12108deefc540c293697f to your computer and use it in GitHub Desktop.
Nginx WebSocket 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
# https://www.nginx.com/blog/websocket-nginx/ | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment