Last active
August 29, 2015 14:27
-
-
Save tiagopog/62a47967b218960b7270 to your computer and use it in GitHub Desktop.
NGINX - Local config
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; | |
#pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
upstream beautydate { | |
server localhost:3000; | |
} | |
server { | |
listen 80; | |
# listen 443 ssl; | |
server_name beautydate.dev; | |
#ssl_certificate /usr/local/Cellar/nginx/ssl/nginx.crt; | |
#ssl_certificate_key /usr/local/Cellar/nginx/ssl/nginx.key; | |
access_log /var/log/nginx/bdt.access.log; | |
error_log /var/log/nginx/bdt.error.log; | |
root /Users/tiagopog/Dev/beautydate/public; | |
index index.html; | |
location / { | |
proxy_buffering off; | |
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 Host $http_host; | |
proxy_pass http://beautydate; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment