Skip to content

Instantly share code, notes, and snippets.

@tommydangerous
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 tommydangerous/760db9411becab45a37f to your computer and use it in GitHub Desktop.
Save tommydangerous/760db9411becab45a37f to your computer and use it in GitHub Desktop.
Belly's Stack v2 Nginx
upstream api {
least_conn;
server 10.0.0.101:8080;
server 10.0.0.102:8080;
server 10.0.0.103:8080;
server 10.0.0.104:8080;
}
upstream homepage {
least_conn;
server 10.0.0.201:8080;
server 10.0.0.202:8080;
}
server {
listen 80;
server_name api.bellycard.com;
location / {
proxy_pass http://api;
}
}
server {
listen 80;
server_name www.bellycard.com;
location / {
proxy_pass http://homepage.com
}
location /api {
proxy_pass http://api;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment