Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LetItRock/1e22f63586523716949dd3c044d2417d to your computer and use it in GitHub Desktop.
Save LetItRock/1e22f63586523716949dd3c044d2417d to your computer and use it in GitHub Desktop.
NGINX - local
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