Created
October 7, 2014 18:20
-
-
Save j-mcnally/a06de248d773ea580ec7 to your computer and use it in GitHub Desktop.
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
upstream app { | |
server 127.0.0.1:4000 fail_timeout=5s; | |
} | |
server { | |
listen 80 default_server; | |
server_name _; | |
root '/var/app/current/priv/static'; | |
location /ws { | |
proxy_pass http://app/ws; | |
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