Skip to content

Instantly share code, notes, and snippets.

@igoralves1
Last active August 8, 2020 08:47
Show Gist options
  • Save igoralves1/72c884661696e3ac5782cc2cb405d744 to your computer and use it in GitHub Desktop.
Save igoralves1/72c884661696e3ac5782cc2cb405d744 to your computer and use it in GitHub Desktop.
Using NGINX as HTTP load balancer, Load Balancing
upstream web_backend{
server 192.168.1.11:3000;
server 192.168.1.12:3000;
}
server {
listen 3000;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://web_backend;
}
}
### How to Configure NGINX as a Load Balancer - Quick Tutorial | Linux Academy
- https://www.youtube.com/watch?v=v81CzSeiQjo
### HTTP Load Balancing with Nginx
- https://www.youtube.com/watch?v=w6OVu2f7KNA
### NGINX Controller - Load Balancing Configuration
- https://www.youtube.com/watch?v=w6OVu2f7KNA
### NGINX HTTP Load Balancing
- https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/
### Using nginx as HTTP load balancer
- http://nginx.org/en/docs/http/load_balancing.html
### Load Balancing Node.js Application Servers with NGINX Open Source and NGINX Plus
- https://docs.nginx.com/nginx/deployment-guides/load-balance-third-party/node-js/
### How to configure load balancing using Nginx
https://upcloud.com/community/tutorials/configure-load-balancing-nginx/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment