Skip to content

Instantly share code, notes, and snippets.

@alesanabriav
Created June 2, 2015 23:12
Show Gist options
  • Save alesanabriav/6fac82e57bebd27ca123 to your computer and use it in GitHub Desktop.
Save alesanabriav/6fac82e57bebd27ca123 to your computer and use it in GitHub Desktop.
nginx_pm2
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://APP_PRIVATE_IP_ADDRESS:8080;
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