From 2a7fba65a59a95dd9672cff87453cab5c937c056 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Sun, 23 Oct 2022 09:06:35 +0800 Subject: [PATCH] 06k8s-install-centos.sh --- 00base/06k8s-install-centos.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/00base/06k8s-install-centos.sh b/00base/06k8s-install-centos.sh index 369c12a..fa42feb 100644 --- a/00base/06k8s-install-centos.sh +++ b/00base/06k8s-install-centos.sh @@ -2106,9 +2106,9 @@ server { proxy_http_version 1.1; proxy_set_header Connection \"\"; proxy_next_upstream error; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header Host \$http_host; + proxy_set_header X-Real-IP \\\$remote_addr; + proxy_set_header X-Forwarded-For \\\$proxy_add_x_forwarded_for; + proxy_set_header Host \\\$http_host; proxy_set_header X-Nginx-Proxy true; proxy_pass http://k8s-ingress/; }