Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created October 7, 2014 18:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-mcnally/a06de248d773ea580ec7 to your computer and use it in GitHub Desktop.
Save j-mcnally/a06de248d773ea580ec7 to your computer and use it in GitHub Desktop.
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