Created
March 17, 2015 22:40
-
-
Save rreas/482301a1c770df5d3928 to your computer and use it in GitHub Desktop.
Simple API + UI nginx configuration for development
This file contains 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; | |
daemon off; | |
worker_processes 1; | |
events { | |
worker_connections 256; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 8080; | |
server_name localhost; | |
location /api { | |
proxy_pass http://localhost:3000/; | |
} | |
location / { | |
proxy_pass http://localhost:5000/; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment