Created
February 3, 2016 12:06
-
-
Save dillinger/c261746a443698d2fd02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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