Merge pull request #696 from jaynakus/patch-1

Update nginx-load-balancer.md https upstream on wrong block
This commit is contained in:
Billy Tat
2023-07-18 16:22:36 -07:00
committed by GitHub
2 changed files with 8 additions and 6 deletions
@@ -60,15 +60,16 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx.
proxy_pass rancher_servers_http;
}
}
http {
upstream rancher_servers_https {
least_conn;
server <IP_NODE_1>:443 max_fails=3 fail_timeout=5s;
server <IP_NODE_2>:443 max_fails=3 fail_timeout=5s;
server <IP_NODE_3>:443 max_fails=3 fail_timeout=5s;
}
}
http {
server {
listen 443 ssl;
proxy_pass rancher_servers_https;
@@ -60,15 +60,16 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx.
proxy_pass rancher_servers_http;
}
}
http {
upstream rancher_servers_https {
least_conn;
server <IP_NODE_1>:443 max_fails=3 fail_timeout=5s;
server <IP_NODE_2>:443 max_fails=3 fail_timeout=5s;
server <IP_NODE_3>:443 max_fails=3 fail_timeout=5s;
}
}
http {
server {
listen 443 ssl;
proxy_pass rancher_servers_https;