Created
February 23, 2015 20:28
-
-
Save ababup1192/6ad4dde93bbca123450d to your computer and use it in GitHub Desktop.
nginx websocket
This file contains 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
upstream backend { | |
server localhost:9000; | |
} | |
server { | |
listen 80; | |
server_name hoge.org; | |
location / { | |
proxy_pass http://backend; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_connect_timeout 43200000; | |
proxy_read_timeout 86400; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment