Created
May 24, 2018 19:11
-
-
Save LetItRock/1e22f63586523716949dd3c044d2417d to your computer and use it in GitHub Desktop.
NGINX - local
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
worker_processes 1; | |
daemon off; | |
events {} | |
# usage: sudo nginx -c ~/workspace/mercury-pilot/nginx/nginx-local.conf | |
http { | |
include /usr/local/etc/nginx/mime.types; | |
server { | |
listen 8080; | |
access_log http.access.log; | |
error_log http.error.log; | |
location / { | |
proxy_pass http://localhost:4000; | |
} | |
location /api { | |
autoindex off; | |
proxy_pass http://localhost:9000/; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment