Skip to content

Instantly share code, notes, and snippets.

@rreas
Created March 17, 2015 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rreas/482301a1c770df5d3928 to your computer and use it in GitHub Desktop.
Save rreas/482301a1c770df5d3928 to your computer and use it in GitHub Desktop.
Simple API + UI nginx configuration for development
#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