From b94d4100a244d4706f6668e0491547b30ad750a7 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 15 May 2024 17:58:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8Dsi?= =?UTF-8?q?ng-box=20reality=E8=87=AA=E5=B7=B1=E5=81=B7=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 4513060..b89315b 100644 --- a/install.sh +++ b/install.sh @@ -1399,7 +1399,7 @@ server { server_name ${domain}; root ${nginxStaticPath}; - set_real_ip_from 0.0.0.0/0; + set_real_ip_from 127.0.0.1; real_ip_header proxy_protocol; client_header_timeout 1071906480m; @@ -1441,7 +1441,7 @@ EOF server { ${nginxH2Conf} - set_real_ip_from 0.0.0.0/0; + set_real_ip_from 127.0.0.1; real_ip_header proxy_protocol; server_name ${domain}; @@ -1469,7 +1469,7 @@ EOF server { ${nginxH2Conf} - set_real_ip_from 0.0.0.0/0; + set_real_ip_from 127.0.0.1; real_ip_header proxy_protocol; server_name ${domain}; @@ -1498,7 +1498,7 @@ EOF server { ${nginxH2Conf} - set_real_ip_from 0.0.0.0/0; + set_real_ip_from 127.0.0.1; real_ip_header proxy_protocol; server_name ${domain}; @@ -1520,7 +1520,7 @@ server { listen 127.0.0.1:31300 proxy_protocol; server_name ${domain}; - set_real_ip_from 0.0.0.0/0; + set_real_ip_from 127.0.0.1; real_ip_header proxy_protocol; root ${nginxStaticPath}; @@ -8084,6 +8084,14 @@ server { ${nginxSubscribeListen} ${serverName} ${nginxSubscribeSSL} + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers TLS13_AES_128_GCM_SHA256:TLS13_AES_256_GCM_SHA384:TLS13_CHACHA20_POLY1305_SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305; + ssl_prefer_server_ciphers on; + + ssl_stapling on; + ssl_stapling_verify on; + resolver 1.1.1.1 valid=60s; + resolver_timeout 2s; client_max_body_size 100m; root ${nginxStaticPath}; location ~ ^/s/(clashMeta|default|clashMetaProfiles|sing-box|sing-box_profiles)/(.*) { @@ -9166,7 +9174,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.2.49" + echoContent green "当前版本:v3.2.50" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus