Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created September 9, 2019 14:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save felipekm/0353e6a498bd6b00514762e84a8467d9 to your computer and use it in GitHub Desktop.
NGINX load balancer
http {
upstream api {
server api.example.com:5000;
server api.example.com:5001;
server api.example.com:5002;
}
server {
listen 80;
location / {
proxy_pass http://api;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment