Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
upstream app {
server 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