From a511885ac942c434dd0f6ef331de520abb294053 Mon Sep 17 00:00:00 2001 From: Simon Heimberg Date: Fri, 27 Mar 2020 11:04:32 +0100 Subject: [PATCH] inprove view of code example of nginx proxy indent all code in example, only some was before remove double code end --- .../create-nodes-lb/nginx/_index.md | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/content/rancher/v2.x/en/installation/k8s-install/create-nodes-lb/nginx/_index.md b/content/rancher/v2.x/en/installation/k8s-install/create-nodes-lb/nginx/_index.md index 49a77c9010e..f915f340d59 100644 --- a/content/rancher/v2.x/en/installation/k8s-install/create-nodes-lb/nginx/_index.md +++ b/content/rancher/v2.x/en/installation/k8s-install/create-nodes-lb/nginx/_index.md @@ -34,20 +34,20 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. worker_rlimit_nofile 40000; events { - worker_connections 8192; + worker_connections 8192; } stream { - upstream rancher_servers_http { - least_conn; - server :80 max_fails=3 fail_timeout=5s; - server :80 max_fails=3 fail_timeout=5s; - server :80 max_fails=3 fail_timeout=5s; - } - server { - listen 80; - proxy_pass rancher_servers_http; - } + upstream rancher_servers_http { + least_conn; + server :80 max_fails=3 fail_timeout=5s; + server :80 max_fails=3 fail_timeout=5s; + server :80 max_fails=3 fail_timeout=5s; + } + server { + listen 80; + proxy_pass rancher_servers_http; + } upstream rancher_servers_https { least_conn; @@ -61,10 +61,8 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. } } - ``` - ``` 3. Save `nginx.conf` to your load balancer at the following path: `/etc/nginx/nginx.conf`.