Skip to content

Instantly share code, notes, and snippets.

@dillinger
Created February 3, 2016 12:06
Show Gist options
  • Select an option

  • Save dillinger/c261746a443698d2fd02 to your computer and use it in GitHub Desktop.

Select an option

Save dillinger/c261746a443698d2fd02 to your computer and use it in GitHub Desktop.
#user nobody;
worker_processes 1;
#daemon off;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
keepalive_timeout 65;
#gzip on;
upstream node_app {
server 127.0.0.1:49160;
}
server {
error_log /var/log/nginx/error.log warn;
listen 80;
server_name nostromobridge.com;
location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_pass http://nodejs:49160;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment