Skip to content

Instantly share code, notes, and snippets.

@chriswessels
Created September 10, 2013 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswessels/6515786 to your computer and use it in GitHub Desktop.
Save chriswessels/6515786 to your computer and use it in GitHub Desktop.
#worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
gzip on;
server {
listen 80;
server_name your-app.com *.your-app.com;
location / {
proxy_pass http://127.0.0.1:2000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment