From 59a46b195ae1730c0090a22e18387a3a90a9662c Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Wed, 8 Feb 2023 16:44:36 -0800 Subject: [PATCH] Apply PR #353 and #389 changes to version 2.6 docs --- .../nginx-load-balancer.md | 8 +++----- .../nginx-load-balancer.md | 18 ++++++++++++++---- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md b/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md index 799d0457d6e..368c456f9fc 100644 --- a/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md +++ b/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md @@ -63,10 +63,10 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. server :443 max_fails=3 fail_timeout=5s; } } - - http{ + + http { server { - listen 443 ssl; + listen 443 ssl; proxy_pass rancher_servers_https; ssl_certificate /path/to/tls.crt; ssl_certificate_key /path/to/key.key; @@ -75,10 +75,8 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. proxy_set_header Host ; proxy_ssl_server_name on; proxy_ssl_name - } } - } ``` diff --git a/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md b/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md index e23af0532bc..368c456f9fc 100644 --- a/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md +++ b/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md @@ -62,11 +62,21 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. server :443 max_fails=3 fail_timeout=5s; server :443 max_fails=3 fail_timeout=5s; } - server { - listen 443; - proxy_pass rancher_servers_https; - } + } + http { + server { + listen 443 ssl; + proxy_pass rancher_servers_https; + ssl_certificate /path/to/tls.crt; + ssl_certificate_key /path/to/key.key; + location / { + proxy_pass https://rancher_servers_https; + proxy_set_header Host ; + proxy_ssl_server_name on; + proxy_ssl_name + } + } } ```