public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#user nobody;
worker_processes 1;
daemon off;
 
error_log /tmp/nginx.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
 
#pid logs/nginx.pid;
 
events {
worker_connections 1024;
}
 
http {
include /usr/local/etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 0;
 
server {
listen 5000;
server_name zaarlydev.com *.zaarlydev.com;
proxy_set_header Host $host;
 
location ~ ^\/(v1|sendgrid|admin|resque|heartbeat|rev|api) {
proxy_pass http://localhost:3000;
}
 
location ~ ^\/(v2) {
proxy_pass http://localhost:3001;
}
 
location ~ ^\/(payments) {
proxy_pass http://localhost:3002;
}
 
 
location / {
proxy_pass http://zaarlydev.com:4001;
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.