Skip to content

Instantly share code, notes, and snippets.

@cismous
Created March 12, 2015 14:00
Show Gist options
  • Save cismous/5aef9b7d6d3ad96fc83b to your computer and use it in GitHub Desktop.
Save cismous/5aef9b7d6d3ad96fc83b to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name domain.com;
location / {
proxy_pass http://localhost:4567;
proxy_redirect http://localhost:4567 http://$host/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "nginx";
proxy_set_header X-NginX-Proxy true;
# Socket.IO Support
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