Skip to content

Instantly share code, notes, and snippets.

@dexterbrylle
Last active August 3, 2017 06:42
Show Gist options
  • Save dexterbrylle/61910f6349fde25d7529748b48663a8b to your computer and use it in GitHub Desktop.
Save dexterbrylle/61910f6349fde25d7529748b48663a8b to your computer and use it in GitHub Desktop.
upstream app {
server 127.0.0.1:3000;
keepalive 16;
}
server {
listen 0.0.0.0:80;
server_name app.com www.app.com;
access_log /var/log/nginx/themixrapp.log;
root /var/www/mixr-new/public/;
index index.html index.htm;
location / {
root /var/www/mixr-new/public/;
index index.html index.htm;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://themixrapp;
proxy_redirect off;
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