Skip to content

Instantly share code, notes, and snippets.

@kerberjg
Created June 25, 2016 22:28
Show Gist options
  • Save kerberjg/a7d0eb2af542fa7e701dd310372e40db to your computer and use it in GitHub Desktop.
Save kerberjg/a7d0eb2af542fa7e701dd310372e40db to your computer and use it in GitHub Desktop.
Nginx config example
server {
listen 80;
server_name stuff.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment