Skip to content

Instantly share code, notes, and snippets.

@rishiag
Last active April 13, 2017 08:12
Show Gist options
  • Select an option

  • Save rishiag/a32043271292ed4a918f to your computer and use it in GitHub Desktop.

Select an option

Save rishiag/a32043271292ed4a918f to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name srvs.co;
location / {
proxy_pass http://localhost:3001;
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;
}
}
server {
listen 81;
server_name srvs.co;
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