From e7d8371ed9b43fefa7cc1bb53bf81438bfc8f8f0 Mon Sep 17 00:00:00 2001 From: wulabing Date: Thu, 6 Feb 2020 15:43:04 +0800 Subject: [PATCH] =?UTF-8?q?1.0.7=20Nginx=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=20XFF=E6=B7=BB=E5=8A=A0=20=E6=84=9F=E8=B0=A2=20tg:@Cl?= =?UTF-8?q?iwired?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index d369015..9b8715a 100644 --- a/install.sh +++ b/install.sh @@ -465,6 +465,8 @@ nginx_conf_add(){ proxy_redirect off; proxy_pass http://127.0.0.1:10000; proxy_http_version 1.1; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host \$http_host;