From f9d441a97f75903d360af507bb87b68bb8abc41b Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 15:11:46 +0800 Subject: [PATCH 01/98] Update install.sh --- plugins/openresty/versions/rtmp/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/versions/rtmp/install.sh b/plugins/openresty/versions/rtmp/install.sh index 11a8f5d88..4faa99f89 100644 --- a/plugins/openresty/versions/rtmp/install.sh +++ b/plugins/openresty/versions/rtmp/install.sh @@ -14,7 +14,7 @@ sysName=`uname` action=$1 type=$2 -VERSION=1.27.1.1 +VERSION=1.27.1.2 openrestyDir=${serverPath}/source/openresty @@ -114,7 +114,7 @@ Install_openresty() fi - if [[ "$VERSION" =~ "1.25.3" ]]; then + if [[ "$VERSION" =~ "1.27.1" ]]; then OPTIONS="${OPTIONS} --with-http_v3_module" if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then From 047a14dcbc6dd2c7b8e136192addbce6a7557c30 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:11:11 +0800 Subject: [PATCH 02/98] up --- plugins/openresty/versions/1.27.1/install.sh | 2 +- plugins/openresty/versions/1.29.2/install.sh | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 9208776d7..30c469f59 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -114,7 +114,7 @@ Install_openresty() fi - if [[ "$VERSION" =~ "1.25.3" ]] || [[ "$VERSION" =~ "1.27.1" ]];then + if [[ "$VERSION" =~ "1.27.1" ]];then OPTIONS="${OPTIONS} --with-http_v3_module" if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index e1b2dc987..4cb19e747 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -117,16 +117,16 @@ Install_openresty() if [[ "$VERSION" =~ "1.29.2" ]];then OPTIONS="${OPTIONS} --with-http_v3_module" - if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then - wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz - fi + # if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then + # wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz + # fi - if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then - cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz - fi + # if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then + # cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz + # fi - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi # br From 11787d290b2711764bc15f2f1540e8577323f784 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:16:00 +0800 Subject: [PATCH 03/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 4cb19e747..171a3c295 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -137,6 +137,9 @@ Install_openresty() OPTIONS="${OPTIONS} --add-module=./ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From d68cf3b557aa545e72d6ca8fdbe3aac72cc34329 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:22:40 +0800 Subject: [PATCH 04/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 171a3c295..5db4fafe7 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -134,7 +134,7 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi OPTIONS="${OPTIONS} --with-threads" From bdc8223c6ccd689e03a5258ef62a6798a193ddd0 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:24:57 +0800 Subject: [PATCH 05/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 5db4fafe7..0a3d2fa53 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -139,7 +139,7 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" - + OPTIONS="${OPTIONS} --with-pcre-jit" cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From 6576794456e392b198f6d34bdbfa19f41413e0c1 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:34:20 +0800 Subject: [PATCH 06/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 0a3d2fa53..379be0ad5 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -191,7 +191,7 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" == "install" ];then Install_openresty else Uninstall_openresty From 2f39e3277f6d4af3079cbc59c60d6c0380659603 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:38:25 +0800 Subject: [PATCH 07/98] Update install.sh --- plugins/openresty/versions/1.27.1/install.sh | 22 ++++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 30c469f59..fc5a0fc17 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -117,16 +117,16 @@ Install_openresty() if [[ "$VERSION" =~ "1.27.1" ]];then OPTIONS="${OPTIONS} --with-http_v3_module" - if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then - wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz - fi + # if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then + # wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz + # fi - if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then - cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz - fi + # if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then + # cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz + # fi - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi # br @@ -134,9 +134,13 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ $OPTIONS \ From f0b515ff5c809508e145a3adfd43dbf6397632ec Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:38:53 +0800 Subject: [PATCH 08/98] Update install.sh --- plugins/openresty/versions/1.17.8/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index ee8d30fd0..cc6b0c992 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -127,9 +127,13 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ From dfc3e79709c6fe9987968a4f3b8bdd3994568d16 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:39:20 +0800 Subject: [PATCH 09/98] Update install.sh --- plugins/openresty/versions/1.19.3/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 5b34d13b3..b30e75f9d 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -128,9 +128,13 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ From 0fc0e12c0860ce176b1a3cfbb20be06e0c0c9987 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:39:45 +0800 Subject: [PATCH 10/98] update --- plugins/openresty/versions/1.21.4/install.sh | 6 +++++- plugins/openresty/versions/1.25.3/install.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index dcd36f627..ab611e7cd 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -127,9 +127,13 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 32ac58f80..30732daae 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -143,9 +143,13 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ $OPTIONS \ From 6424e1e4169153e875125ec9e33ce8d2e2bbd563 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:44:41 +0800 Subject: [PATCH 11/98] Update install.sh --- plugins/openresty/versions/1.25.3/install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 30732daae..21455125e 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -126,16 +126,16 @@ Install_openresty() if [[ "$VERSION" =~ "1.25.3" ]]; then OPTIONS="${OPTIONS} --with-http_v3_module" - if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then - wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz - fi + # if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then + # wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz + # fi - if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then - cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz - fi + # if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then + # cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz + # fi - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi # br From c27914c957bea5eb126ef44013de56aaf76770cd Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:48:35 +0800 Subject: [PATCH 12/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 379be0ad5..f486ac250 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -140,6 +140,8 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From c5aeaf1452501b83bb3db24c144e5d6a32d5410d Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:48:59 +0800 Subject: [PATCH 13/98] update --- plugins/openresty/versions/1.17.8/install.sh | 1 + plugins/openresty/versions/1.19.3/install.sh | 1 + plugins/openresty/versions/1.21.4/install.sh | 1 + plugins/openresty/versions/1.25.3/install.sh | 1 + plugins/openresty/versions/1.27.1/install.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index cc6b0c992..a63180f5d 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -133,6 +133,7 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" # --with-openssl=$serverPath/source/lib/openssl-1.0.2q diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index b30e75f9d..3e30844d0 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -134,6 +134,7 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" # --with-openssl=$serverPath/source/lib/openssl-1.0.2q diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index ab611e7cd..b534784f7 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -133,6 +133,7 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 21455125e..fe2c29843 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -149,6 +149,7 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index fc5a0fc17..5e34fc0c7 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -140,6 +140,7 @@ Install_openresty() OPTIONS="${OPTIONS} --with-threads" OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From b1f531446a3bfa967a237a64d81d37263c07d23a Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 11:02:47 +0800 Subject: [PATCH 14/98] Update install.sh --- plugins/openresty/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 9aa98a06c..a9fb92909 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -7,6 +7,7 @@ export PATH # cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.29.2 # curl -I -H "Accept-Encoding: br" http://localhost +# curl --http3 -v https://www.xxx.com # cd /www/server/mdserver-web && python3 plugins/openresty/index.py run_info From 691dd4a7bdd4cb62a80c1ae309851843c578d05c Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 11:12:33 +0800 Subject: [PATCH 15/98] Update install.sh --- plugins/openresty/versions/1.27.1/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 5e34fc0c7..34a3ac175 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -72,9 +72,9 @@ Install_openresty() OPTIONS='' - opensslVersion="1.1.1p" + opensslVersion="3.4.4" libresslVersion="3.9.1" - pcreVersion='8.38' + pcreVersion='8.45' if [ "$sysName" == "Darwin" ];then if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then From 907ae1db04b494d841c05d940064caa6c576b3ad Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 11:16:32 +0800 Subject: [PATCH 16/98] update --- plugins/openresty/versions/1.21.4/install.sh | 4 ++-- plugins/openresty/versions/1.25.3/install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index b534784f7..053a9a8bb 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -72,9 +72,9 @@ Install_openresty() OPTIONS='' - opensslVersion="1.1.1p" + opensslVersion="3.4.4" libresslVersion="3.9.1" - pcreVersion='8.38' + pcreVersion='8.45' if [ "$sysName" == "Darwin" ];then if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index fe2c29843..61d3fd111 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -72,9 +72,9 @@ Install_openresty() OPTIONS='' - opensslVersion="1.1.1p" + opensslVersion="3.4.4" libresslVersion="3.9.1" - pcreVersion='8.38' + pcreVersion='8.45' if [ "$sysName" == "Darwin" ];then if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then From f714da7662f4805ed9b05189199619a1f834892f Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 11:25:02 +0800 Subject: [PATCH 17/98] Update install.sh --- plugins/openresty/versions/1.21.4/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 053a9a8bb..b534784f7 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -72,9 +72,9 @@ Install_openresty() OPTIONS='' - opensslVersion="3.4.4" + opensslVersion="1.1.1p" libresslVersion="3.9.1" - pcreVersion='8.45' + pcreVersion='8.38' if [ "$sysName" == "Darwin" ];then if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then From 1c6ade5b772a6f3e69c6f8a2a8824691a6451854 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 20:26:25 +0800 Subject: [PATCH 18/98] Update install.sh --- plugins/openresty/versions/rtmp/install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/openresty/versions/rtmp/install.sh b/plugins/openresty/versions/rtmp/install.sh index 4faa99f89..e95d9a67d 100644 --- a/plugins/openresty/versions/rtmp/install.sh +++ b/plugins/openresty/versions/rtmp/install.sh @@ -140,6 +140,19 @@ Install_openresty() fi OPTIONS="${OPTIONS} --add-module=${openrestyDir}/nginx-rtmp-module-${nginx_rtmp_ver}" + # br + if [ ! -d ${openrestyDir}/openresty-${VERSION}/ngx_brotli ];then + cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git + cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init + + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" + fi + + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + OPTIONS="${OPTIONS} --with-http_gzip_static_module" + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From 7dd59c33465e0af1089a5ae22c7b73e9f521b74b Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 20:29:06 +0800 Subject: [PATCH 19/98] Update install.sh --- plugins/openresty/versions/rtmp/install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/openresty/versions/rtmp/install.sh b/plugins/openresty/versions/rtmp/install.sh index e95d9a67d..dc21c570d 100644 --- a/plugins/openresty/versions/rtmp/install.sh +++ b/plugins/openresty/versions/rtmp/install.sh @@ -72,9 +72,9 @@ Install_openresty() OPTIONS='' - opensslVersion="1.1.1p" + opensslVersion="3.4.4" libresslVersion="3.9.1" - pcreVersion='8.38' + pcreVersion='8.45' if [ "$sysName" == "Darwin" ];then if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then @@ -117,16 +117,16 @@ Install_openresty() if [[ "$VERSION" =~ "1.27.1" ]]; then OPTIONS="${OPTIONS} --with-http_v3_module" - if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then - wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz - fi + # if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then + # wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz + # fi - if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then - cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz - fi + # if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then + # cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz + # fi - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi # rtmp推流功能 From af735e196e5c95af04b98ba0b0ef01520e3ccc2c Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 23:37:24 +0800 Subject: [PATCH 20/98] Update site.py --- web/utils/site.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web/utils/site.py b/web/utils/site.py index a8fa1fc9e..460652a41 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1532,6 +1532,7 @@ location ^~ {from} {\n\ proxy_set_header Upgrade $http_upgrade;\n\ proxy_set_header Connection $connection_upgrade;\n\ proxy_http_version 1.1;\n\ + proxy_set_header X-Forwarded-Proto $scheme;\n\ \n\ {proxy_cache}\n\ }\n\ From e7528205f6a0c8daf4be63f597f26c5d7efce5d8 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:05:27 +0800 Subject: [PATCH 21/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 07cd73d9a..5ba1d4ef2 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -36,7 +36,7 @@ http client_max_body_size 50m; # video big file opt - # aio threads; + aio threads; directio 4m; output_buffers 16 512k; sendfile on; From 086692e66819177c866342e11dee43e4cbb36792 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:05:59 +0800 Subject: [PATCH 22/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 5ba1d4ef2..8ecd95bcb 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -96,6 +96,7 @@ http server_tokens off; access_log /dev/null; + add_header Alt-Svc 'h3=":443"; ma=2592000' always; include {$SERVER_PATH}/web_conf/nginx/vhost/*.conf; } From cc315db34b129d72f0e8005ecc57a99326e64848 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:10:35 +0800 Subject: [PATCH 23/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 8ecd95bcb..4bcec3fec 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -96,7 +96,7 @@ http server_tokens off; access_log /dev/null; - add_header Alt-Svc 'h3=":443"; ma=2592000' always; + add_header Alt-Svc 'h3=":443"; ma=2592000'; include {$SERVER_PATH}/web_conf/nginx/vhost/*.conf; } From 4dd557feeed03d555a556d8d6815b0135b78f96a Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:12:18 +0800 Subject: [PATCH 24/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 4bcec3fec..7ac5629a3 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -5,6 +5,7 @@ error_log {$SERVER_PATH}/openresty/nginx/logs/error.log crit; pid {$SERVER_PATH}/openresty/nginx/logs/nginx.pid; worker_rlimit_nofile 65535; +pcre_jit on; events { From 89f21867a511906c694700fcfd3ff515e8d6faf1 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:13:41 +0800 Subject: [PATCH 25/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 7ac5629a3..d5681ce4b 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -97,6 +97,8 @@ http server_tokens off; access_log /dev/null; + quic_gso on; + quic_retry on; add_header Alt-Svc 'h3=":443"; ma=2592000'; include {$SERVER_PATH}/web_conf/nginx/vhost/*.conf; } From e628f1f6d5d2b31a8a48f733466a78d3316a77f0 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:29:12 +0800 Subject: [PATCH 26/98] update --- web/core/mw.py | 9 +++++++++ web/utils/site.py | 15 +++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/web/core/mw.py b/web/core/mw.py index 208d049b2..4eab3d1cc 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -922,6 +922,15 @@ def isSupportSystemctl(): return False return True +def isSupportHttp3(version): + if version.startswith('1.25'): + return True + if version.startswith('1.27'): + return True + if version.startswith('1.29'): + return True + return False + def isDebugMode(): if isAppleSystem(): return True diff --git a/web/utils/site.py b/web/utils/site.py index 460652a41..d67bfc5dc 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -553,15 +553,14 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - - if version.startswith('1.25') or version.startswith('1.27'): - http_ssl = "\n\tlisten 443 ssl;" - http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" - http_ssl = http_ssl + "\n\thttp2 on;" - else: - http_ssl = "\n\tlisten 443 ssl;" - http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" + http_ssl = "\n\tlisten 443 ssl;" + http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" + http_ssl = http_ssl + "\n\thttp2 on;" + + + if mw.isSupportHttp3(version): + http_ssl = "\n\thttp2 on;" conf = conf.replace(listen, listen + http_ssl) From 583f2a17b504018fe76bda7e13266261bc604a25 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:31:33 +0800 Subject: [PATCH 27/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index d67bfc5dc..5df3a5d0e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -560,7 +560,7 @@ class sites(object): if mw.isSupportHttp3(version): - http_ssl = "\n\thttp2 on;" + http_ssl = "\n\thttp3 on;" conf = conf.replace(listen, listen + http_ssl) From 3ddb6f9abc235a368e5f6ccf4539daaa6c2778f3 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:31:53 +0800 Subject: [PATCH 28/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 5df3a5d0e..c612f3f2d 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -560,7 +560,7 @@ class sites(object): if mw.isSupportHttp3(version): - http_ssl = "\n\thttp3 on;" + http_ssl = http_ssl + "\n\thttp3 on;" conf = conf.replace(listen, listen + http_ssl) From 5ce627ee0b595922d7193bfac241ddfe0c7943dd Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:32:03 +0800 Subject: [PATCH 29/98] Update site.py --- web/utils/site.py | 1 - 1 file changed, 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index c612f3f2d..a8b5da2f7 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -558,7 +558,6 @@ class sites(object): http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" http_ssl = http_ssl + "\n\thttp2 on;" - if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\thttp3 on;" From 422b904e00779bce0e37bfe0f0549903a74635a1 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:32:41 +0800 Subject: [PATCH 30/98] Update site.py --- web/utils/site.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index a8b5da2f7..31c6dd50a 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -529,10 +529,9 @@ class sites(object): # add_header Alt-Svc 'h3=":443";ma=86400,h3-29=":443";ma=86400'; http3Header = """ add_header Strict-Transport-Security "max-age=63072000"; - add_header Alt-Svc 'h3=":443";ma=86400'; """ - if not version.startswith('1.25') or version.startswith('1.27'): - http3Header = ''; + # if not version.startswith('1.25') or version.startswith('1.27'): + # http3Header = ''; sslStr = """#error_page 404/404.html; ssl_certificate %s; From 8d4db5b57442437132187b2bfcba9ecddd61bcc4 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:33:01 +0800 Subject: [PATCH 31/98] Update site.py --- web/utils/site.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web/utils/site.py b/web/utils/site.py index 31c6dd50a..1b2af3592 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -529,6 +529,7 @@ class sites(object): # add_header Alt-Svc 'h3=":443";ma=86400,h3-29=":443";ma=86400'; http3Header = """ add_header Strict-Transport-Security "max-age=63072000"; + add_header Alt-Svc 'h3=":443";ma=86400'; """ # if not version.startswith('1.25') or version.startswith('1.27'): # http3Header = ''; From 414ba32541a30a3b1659a6d09ec8fb842854cd7b Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:33:11 +0800 Subject: [PATCH 32/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index d5681ce4b..f1a726942 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -99,7 +99,6 @@ http quic_gso on; quic_retry on; - add_header Alt-Svc 'h3=":443"; ma=2592000'; include {$SERVER_PATH}/web_conf/nginx/vhost/*.conf; } From 7eac6cadb07d86cdf67d90bd595e610ed1ac6590 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:33:25 +0800 Subject: [PATCH 33/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index f1a726942..6c4257f72 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -97,8 +97,6 @@ http server_tokens off; access_log /dev/null; - quic_gso on; - quic_retry on; include {$SERVER_PATH}/web_conf/nginx/vhost/*.conf; } From 3e96586c8e0479fe3845c7eaf804e70f5f3c6455 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:39:50 +0800 Subject: [PATCH 34/98] Update site.py --- web/utils/site.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 1b2af3592..3bd9338f3 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -2111,6 +2111,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, '', conf) rep = r"\s+http2\s+on;" conf = re.sub(rep, '', conf) + rep = r"\s+http3\s+on;" + conf = re.sub(rep, '', conf) mw.writeFile(file, conf) msg = mw.getInfo('网站[{1}]关闭SSL成功!', (site_name,)) From de29c766b3bda2a62aec5d93f3dfeedbada6eab4 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:45:37 +0800 Subject: [PATCH 35/98] Update site.py --- web/utils/site.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web/utils/site.py b/web/utils/site.py index 3bd9338f3..8ed715e11 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -559,6 +559,7 @@ class sites(object): http_ssl = http_ssl + "\n\thttp2 on;" if mw.isSupportHttp3(version): + http_ssl = "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" conf = conf.replace(listen, listen + http_ssl) From 81db94ac8ac66f8ad3c185dc4582a29720efbfa3 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:58:19 +0800 Subject: [PATCH 36/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 8ed715e11..36e08e508 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -528,8 +528,8 @@ class sites(object): # ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; # add_header Alt-Svc 'h3=":443";ma=86400,h3-29=":443";ma=86400'; http3Header = """ - add_header Strict-Transport-Security "max-age=63072000"; add_header Alt-Svc 'h3=":443";ma=86400'; + add_header Strict-Transport-Security "max-age=63072000"; """ # if not version.startswith('1.25') or version.startswith('1.27'): # http3Header = ''; From e246509ebff6ca2452fe0dddea072cdcacd445aa Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 00:59:29 +0800 Subject: [PATCH 37/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 36e08e508..ff4213474 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -559,7 +559,7 @@ class sites(object): http_ssl = http_ssl + "\n\thttp2 on;" if mw.isSupportHttp3(version): - http_ssl = "\n\tlisten 443 ssl reuseport;" + http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" conf = conf.replace(listen, listen + http_ssl) From fa41140aed64c0ce099a3cfe431b8157afe97f99 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:01:33 +0800 Subject: [PATCH 38/98] Update site.py --- web/utils/site.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index ff4213474..856412cdf 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -556,11 +556,10 @@ class sites(object): http_ssl = "\n\tlisten 443 ssl;" http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" - http_ssl = http_ssl + "\n\thttp2 on;" - if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" + http_ssl = http_ssl + "\n\thttp2 on;" conf = conf.replace(listen, listen + http_ssl) From 593c90f605d3a6f2a91c14d9b455c394ea95113f Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:02:40 +0800 Subject: [PATCH 39/98] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 856412cdf..4efd4fa9e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -528,8 +528,8 @@ class sites(object): # ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; # add_header Alt-Svc 'h3=":443";ma=86400,h3-29=":443";ma=86400'; http3Header = """ - add_header Alt-Svc 'h3=":443";ma=86400'; - add_header Strict-Transport-Security "max-age=63072000"; + add_header Alt-Svc 'h3=":443";ma=86400' always; + add_header Strict-Transport-Security "max-age=63072000" always; """ # if not version.startswith('1.25') or version.startswith('1.27'): # http3Header = ''; From d49d2247c988d553549a6d3579049a2f9efca19a Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:04:27 +0800 Subject: [PATCH 40/98] Update site.py --- web/utils/site.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 4efd4fa9e..b6ea49aab 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -555,10 +555,12 @@ class sites(object): listen = re.search(rep, conf).group() http_ssl = "\n\tlisten 443 ssl;" - http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" + else: + http_ssl = http_ssl + "\n\tlisten 443 ssl;" + http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" http_ssl = http_ssl + "\n\thttp2 on;" conf = conf.replace(listen, listen + http_ssl) From 5ebe3fd95c8611fb4d35c7cf0bb832b1c693d149 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:06:01 +0800 Subject: [PATCH 41/98] Update site.py --- web/utils/site.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index b6ea49aab..df07b3035 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -553,8 +553,6 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - - http_ssl = "\n\tlisten 443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" From 170005fb79e90f908bdb7f83de000a47a5673e4d Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:07:59 +0800 Subject: [PATCH 42/98] Update site.py --- web/utils/site.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web/utils/site.py b/web/utils/site.py index df07b3035..61cca031d 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -553,6 +553,7 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() + http_ssl = "" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" From f94d23723c2ba454b6f2a995cee8b40d3c7811ad Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:14:40 +0800 Subject: [PATCH 43/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 61cca031d..93c3829ae 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -553,7 +553,7 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - http_ssl = "" + http_ssl = "\n\t" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" From 7af6dac9644df2c365fd8a510d7feb360054918e Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:19:43 +0800 Subject: [PATCH 44/98] Update site.py --- web/utils/site.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 93c3829ae..af189ea4e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1929,6 +1929,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80;', conf, 1) rep = r"listen\s+443.+;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) + rep = r"listen\s+[::]:443.+;" + conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) mw.writeFile(path, conf) path = self.getHostConf(name) @@ -1938,6 +1940,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80 default_server;', conf, 1) rep = r"listen\s+443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) + rep = r"listen\s+[::]:443\s*ssl\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) mw.writeFile(path, conf) thisdb.setOption('default_site', name) From 341e2ed7ff342445414b262d7bcef4065f1a6994 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:28:38 +0800 Subject: [PATCH 45/98] Update site.py --- web/utils/site.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index af189ea4e..81983f9ea 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -527,9 +527,10 @@ class sites(object): if conf.find('ssl_certificate') == -1: # ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; # add_header Alt-Svc 'h3=":443";ma=86400,h3-29=":443";ma=86400'; + # add_header Strict-Transport-Security "max-age=63072000" always; http3Header = """ add_header Alt-Svc 'h3=":443";ma=86400' always; - add_header Strict-Transport-Security "max-age=63072000" always; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; """ # if not version.startswith('1.25') or version.startswith('1.27'): # http3Header = ''; From 4932eab08ad5fb73c6a2b6c7f73650ceee4034c7 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:34:08 +0800 Subject: [PATCH 46/98] Update site.py --- web/utils/site.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 81983f9ea..ded789072 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1930,8 +1930,12 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80;', conf, 1) rep = r"listen\s+443.+;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) + rep = r"listen\s+443\s+quic.+;" + conf = re.sub(rep, 'listen 443 quic;', conf, 1) rep = r"listen\s+[::]:443.+;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) + rep = r"listen\s+[::]:443\s+quic.+;" + conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) mw.writeFile(path, conf) path = self.getHostConf(name) @@ -1941,8 +1945,12 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80 default_server;', conf, 1) rep = r"listen\s+443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) + rep = r"listen\s+443\s*quic\s*\w*\s*;" + conf = re.sub(rep, 'listen 443 quic default_server;', conf, 1) rep = r"listen\s+[::]:443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) + rep = r"listen\s+[::]:443\s*quic\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) mw.writeFile(path, conf) thisdb.setOption('default_site', name) From 27be26d12dec004c1a88a745c1bf4661b0bf27cb Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:39:09 +0800 Subject: [PATCH 47/98] Update site.py --- web/utils/site.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index ded789072..0895dde06 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1936,6 +1936,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) rep = r"listen\s+[::]:443\s+quic.+;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) + rep = r"listen\s+[::]:443\s+quic\s+reuseport.+;" + conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) mw.writeFile(path, conf) path = self.getHostConf(name) @@ -1951,6 +1953,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) rep = r"listen\s+[::]:443\s*quic\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) + rep = r"listen\s+[::]:443\s*quic\s*reuseport\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:443 quic reuseport default_server;', conf, 1) mw.writeFile(path, conf) thisdb.setOption('default_site', name) From 348500a28878f728bf41235961b9afaa48ff00b2 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:42:42 +0800 Subject: [PATCH 48/98] Update site.py --- web/utils/site.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 0895dde06..81dcbe37d 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1945,6 +1945,8 @@ location ^~ {from} {\n\ conf = mw.readFile(path) rep = r"listen\s+80\s*;" conf = re.sub(rep, 'listen 80 default_server;', conf, 1) + rep = r"listen\s+[::]:80\s*ssl\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:80 default_server;', conf, 1) rep = r"listen\s+443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) rep = r"listen\s+443\s*quic\s*\w*\s*;" From 7e6a5de0f148fa2e7495a19c2ab210e041904a49 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:43:21 +0800 Subject: [PATCH 49/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 81dcbe37d..34e1bac18 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1936,7 +1936,7 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) rep = r"listen\s+[::]:443\s+quic.+;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) - rep = r"listen\s+[::]:443\s+quic\s+reuseport.+;" + rep = r"listen\s+[::]:443\s+quic\s*reuseport.+;" conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) mw.writeFile(path, conf) From 023a5b75b460866d14bb99026d64951040eca128 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:46:54 +0800 Subject: [PATCH 50/98] Update site.py --- web/utils/site.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 34e1bac18..745051d43 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1932,11 +1932,11 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 ssl;', conf, 1) rep = r"listen\s+443\s+quic.+;" conf = re.sub(rep, 'listen 443 quic;', conf, 1) - rep = r"listen\s+[::]:443.+;" + rep = r"listen\s+\[\:\:\]\:443.+;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) - rep = r"listen\s+[::]:443\s+quic.+;" + rep = r"listen\s+\[\:\:\]\:443\s+quic.+;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) - rep = r"listen\s+[::]:443\s+quic\s*reuseport.+;" + rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport.+;" conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) mw.writeFile(path, conf) @@ -1945,17 +1945,17 @@ location ^~ {from} {\n\ conf = mw.readFile(path) rep = r"listen\s+80\s*;" conf = re.sub(rep, 'listen 80 default_server;', conf, 1) - rep = r"listen\s+[::]:80\s*ssl\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:80\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:80 default_server;', conf, 1) rep = r"listen\s+443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) rep = r"listen\s+443\s*quic\s*\w*\s*;" conf = re.sub(rep, 'listen 443 quic default_server;', conf, 1) - rep = r"listen\s+[::]:443\s*ssl\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) - rep = r"listen\s+[::]:443\s*quic\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) - rep = r"listen\s+[::]:443\s*quic\s*reuseport\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*reuseport\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 quic reuseport default_server;', conf, 1) mw.writeFile(path, conf) From 87c5dd5fa73452d8bfeebababb085699833ea30c Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:48:15 +0800 Subject: [PATCH 51/98] Update site.py --- web/utils/site.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 745051d43..de831850a 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1928,6 +1928,8 @@ location ^~ {from} {\n\ conf = mw.readFile(path) rep = r"listen\s+80.+;" conf = re.sub(rep, 'listen 80;', conf, 1) + rep = r"listen\s+\[\:\:\]\:80.+;" + conf = re.sub(rep, 'listen [::]:80;', conf, 1) rep = r"listen\s+443.+;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) rep = r"listen\s+443\s+quic.+;" From efaa97b9bdbf497e7b017f2c21199e188e6c1e34 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:50:13 +0800 Subject: [PATCH 52/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index de831850a..631491d0b 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1947,7 +1947,7 @@ location ^~ {from} {\n\ conf = mw.readFile(path) rep = r"listen\s+80\s*;" conf = re.sub(rep, 'listen 80 default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:80\s*ssl\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:80\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:80 default_server;', conf, 1) rep = r"listen\s+443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) From 5b374b0410129ac02703c55378eb5caf06942a29 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:56:58 +0800 Subject: [PATCH 53/98] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 631491d0b..5f55fc465 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1936,10 +1936,10 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic;', conf, 1) rep = r"listen\s+\[\:\:\]\:443.+;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s+quic.+;" - conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport.+;" conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) + rep = r"listen\s+\[\:\:\]\:443\s+quic.+;" + conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) mw.writeFile(path, conf) path = self.getHostConf(name) From 6744282bf195cb3f3fd5ef17a08484beb82f8977 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 01:58:18 +0800 Subject: [PATCH 54/98] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 5f55fc465..f9d0ace06 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1955,10 +1955,10 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic default_server;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*quic\s*\w*\s*;" - conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*quic\s*reuseport\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 quic reuseport default_server;', conf, 1) + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) mw.writeFile(path, conf) thisdb.setOption('default_site', name) From 949ebf83e3b0d7e2c4731fdca8da0deb142bb173 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:01:13 +0800 Subject: [PATCH 55/98] Update site.py --- web/utils/site.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index f9d0ace06..17e3febdb 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1926,6 +1926,11 @@ location ^~ {from} {\n\ path = self.getHostConf(default_site) if os.path.exists(path): conf = mw.readFile(path) + rep = r"listen\s+443\s+quic\s*reuseport.+" + conf = re.sub(rep, 'listen 443 quic reuseport;', conf, 1) + rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport.+;" + conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) + rep = r"listen\s+80.+;" conf = re.sub(rep, 'listen 80;', conf, 1) rep = r"listen\s+\[\:\:\]\:80.+;" @@ -1936,8 +1941,6 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic;', conf, 1) rep = r"listen\s+\[\:\:\]\:443.+;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport.+;" - conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s+quic.+;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) mw.writeFile(path, conf) @@ -1945,6 +1948,12 @@ location ^~ {from} {\n\ path = self.getHostConf(name) if os.path.exists(path): conf = mw.readFile(path) + rep = r"listen\s+443\s*quic\s*reuseport\s*\w*\s*;" + conf = re.sub(rep, 'listen 443 quic reuseport default_server;', conf, 1) + + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*reuseport\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:443 quic reuseport default_server;', conf, 1) + rep = r"listen\s+80\s*;" conf = re.sub(rep, 'listen 80 default_server;', conf, 1) rep = r"listen\s+\[\:\:\]\:80\s*\w*\s*;" @@ -1955,8 +1964,7 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic default_server;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*quic\s*reuseport\s*\w*\s*;" - conf = re.sub(rep, 'listen [::]:443 quic reuseport default_server;', conf, 1) + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) mw.writeFile(path, conf) From 7745bbe60c60025c988c26188bb59e1b41dcb74e Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:01:47 +0800 Subject: [PATCH 56/98] Update site.py --- web/utils/site.py | 1 - 1 file changed, 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 17e3febdb..1122ebb36 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1964,7 +1964,6 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic default_server;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*quic\s*\w*\s*;" conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) mw.writeFile(path, conf) From 87ca7fdc8d219e5bdaff049df240648be3cfd1e1 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:17:27 +0800 Subject: [PATCH 57/98] Update site.py --- web/utils/site.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 1122ebb36..d57ec3111 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1948,23 +1948,23 @@ location ^~ {from} {\n\ path = self.getHostConf(name) if os.path.exists(path): conf = mw.readFile(path) - rep = r"listen\s+443\s*quic\s*reuseport\s*\w*\s*;" + rep = r"listen\s+443\s*quic\s*reuseport;" conf = re.sub(rep, 'listen 443 quic reuseport default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*quic\s*reuseport\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*reuseport;" conf = re.sub(rep, 'listen [::]:443 quic reuseport default_server;', conf, 1) rep = r"listen\s+80\s*;" conf = re.sub(rep, 'listen 80 default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:80\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:80;" conf = re.sub(rep, 'listen [::]:80 default_server;', conf, 1) - rep = r"listen\s+443\s*ssl\s*\w*\s*;" + rep = r"listen\s+443\s*ssl;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) - rep = r"listen\s+443\s*quic\s*\w*\s*;" + rep = r"listen\s+443\s*quic;" conf = re.sub(rep, 'listen 443 quic default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*ssl\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:443\s*ssl;" conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*quic\s*\w*\s*;" + rep = r"listen\s+\[\:\:\]\:443\s*quic;" conf = re.sub(rep, 'listen [::]:443 quic default_server;', conf, 1) mw.writeFile(path, conf) From 61cf4eb96475c64a12d833a944808e98f2dfa001 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:20:05 +0800 Subject: [PATCH 58/98] Update site.py --- web/utils/site.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index d57ec3111..b4a92861f 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1926,22 +1926,22 @@ location ^~ {from} {\n\ path = self.getHostConf(default_site) if os.path.exists(path): conf = mw.readFile(path) - rep = r"listen\s+443\s+quic\s*reuseport.+" + rep = r"listen\s+443\s+quic\s*reuseport default_server" conf = re.sub(rep, 'listen 443 quic reuseport;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport.+;" + rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport\s*default_server;" conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) - rep = r"listen\s+80.+;" + rep = r"listen\s+80 default_server;" conf = re.sub(rep, 'listen 80;', conf, 1) - rep = r"listen\s+\[\:\:\]\:80.+;" + rep = r"listen\s+\[\:\:\]\:80;" conf = re.sub(rep, 'listen [::]:80;', conf, 1) - rep = r"listen\s+443.+;" + rep = r"listen\s+443\s*default_server;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) - rep = r"listen\s+443\s+quic.+;" + rep = r"listen\s+443\s*quic\*default_server;" conf = re.sub(rep, 'listen 443 quic;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443.+;" + rep = r"listen\s+\[\:\:\]\:443\s*default_server;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s+quic.+;" + rep = r"listen\s+\[\:\:\]\:443\s+quic\*default_server;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) mw.writeFile(path, conf) From e50877ba5d3ad358ec0dedd71705a3c98d31270f Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:20:15 +0800 Subject: [PATCH 59/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index b4a92861f..8bc10fad9 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1941,7 +1941,7 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*default_server;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s+quic\*default_server;" + rep = r"listen\s+\[\:\:\]\:443\s+quic\s*default_server;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) mw.writeFile(path, conf) From bbf4200b42bd83a834332a019c74a5a7b0fa1877 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:20:25 +0800 Subject: [PATCH 60/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 8bc10fad9..efa06b66e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1941,7 +1941,7 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 443 quic;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*default_server;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s+quic\s*default_server;" + rep = r"listen\s+\[\:\:\]\:443\s*quic\s*default_server;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) mw.writeFile(path, conf) From fd7179c3f57781a769e1884288784a7eae6e3d79 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:21:16 +0800 Subject: [PATCH 61/98] Update site.py --- web/utils/site.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index efa06b66e..fefe71ed2 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1931,15 +1931,15 @@ location ^~ {from} {\n\ rep = r"listen\s+\[\:\:\]\:443\s+quic\s*reuseport\s*default_server;" conf = re.sub(rep, 'listen [::]:443 quic reuseport;', conf, 1) - rep = r"listen\s+80 default_server;" + rep = r"listen\s+80\s*default_server;" conf = re.sub(rep, 'listen 80;', conf, 1) - rep = r"listen\s+\[\:\:\]\:80;" + rep = r"listen\s+\[\:\:\]\:80\s*default_server;" conf = re.sub(rep, 'listen [::]:80;', conf, 1) rep = r"listen\s+443\s*default_server;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) rep = r"listen\s+443\s*quic\*default_server;" conf = re.sub(rep, 'listen 443 quic;', conf, 1) - rep = r"listen\s+\[\:\:\]\:443\s*default_server;" + rep = r"listen\s+\[\:\:\]\:443\s*ssl\s*default_server;" conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) rep = r"listen\s+\[\:\:\]\:443\s*quic\s*default_server;" conf = re.sub(rep, 'listen [::]:443 quic;', conf, 1) From f2f1f1c87924819fe6392eb22cce3c824f6d0988 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:23:45 +0800 Subject: [PATCH 62/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index fefe71ed2..a55ac8309 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1935,7 +1935,7 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80;', conf, 1) rep = r"listen\s+\[\:\:\]\:80\s*default_server;" conf = re.sub(rep, 'listen [::]:80;', conf, 1) - rep = r"listen\s+443\s*default_server;" + rep = r"listen\s+443\s*ssl\s*default_server;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) rep = r"listen\s+443\s*quic\*default_server;" conf = re.sub(rep, 'listen 443 quic;', conf, 1) From af93e5d00ef5f58b82f24eee1e42cd15a1cb37e2 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:35:43 +0800 Subject: [PATCH 63/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index a55ac8309..60e06ea01 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -556,7 +556,7 @@ class sites(object): listen = re.search(rep, conf).group() http_ssl = "\n\t" if mw.isSupportHttp3(version): - http_ssl = http_ssl + "\n\tlisten 443 ssl reuseport;" + http_ssl = http_ssl + "\n\tlisten 443 quic reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" else: http_ssl = http_ssl + "\n\tlisten 443 ssl;" From 1655fd33eba98c9c60fcf8fa9db927ffffa1064b Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:36:23 +0800 Subject: [PATCH 64/98] Update site.py --- web/utils/site.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 60e06ea01..c39cf3dd1 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -554,13 +554,12 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - http_ssl = "\n\t" + http_ssl = http_ssl + "\n\tlisten 443 ssl;" + http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 quic reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" - else: - http_ssl = http_ssl + "\n\tlisten 443 ssl;" - http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" + http_ssl = http_ssl + "\n\thttp2 on;" conf = conf.replace(listen, listen + http_ssl) From 8a03d1c7045bc01a1c8dda44d13cc1b8052dd96d Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:36:55 +0800 Subject: [PATCH 65/98] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index c39cf3dd1..702a9bc6e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -554,12 +554,12 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - http_ssl = http_ssl + "\n\tlisten 443 ssl;" + http_ssl = "listen 443 ssl;" http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 quic reuseport;" http_ssl = http_ssl + "\n\thttp3 on;" - + http_ssl = http_ssl + "\n\thttp2 on;" conf = conf.replace(listen, listen + http_ssl) From e5be78e8321a860272ba781ef26e8ac439e8d425 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:37:52 +0800 Subject: [PATCH 66/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 702a9bc6e..004625308 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -554,7 +554,7 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - http_ssl = "listen 443 ssl;" + http_ssl = "\n\tlisten 443 ssl;" http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 quic reuseport;" From 3f9540a4152da0c6880d4299e2fff3ec73302666 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:38:07 +0800 Subject: [PATCH 67/98] Update site.py --- web/utils/site.py | 1 - 1 file changed, 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 004625308..eb8e0bd2f 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -561,7 +561,6 @@ class sites(object): http_ssl = http_ssl + "\n\thttp3 on;" http_ssl = http_ssl + "\n\thttp2 on;" - conf = conf.replace(listen, listen + http_ssl) mw.backFile(file) From bac86bd8e0127218265d0eeb7394ee3053c7a8b6 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:55:55 +0800 Subject: [PATCH 68/98] Update install.sh --- plugins/openresty/install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index a9fb92909..19f3f1356 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -31,6 +31,18 @@ else useradd -g www -s /bin/bash www fi +if [ "${action}" == "upgrade" ];then + echo "${VERSION}" > $serverPath/openresty/version.pl + + mkdir -p $serverPath/web_conf/php/conf + echo 'set $PHP_ENV 0;' > $serverPath/web_conf/php/conf/enable-php-00.conf + + #初始化 + cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start + cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install +fi + + if [ "${2}" == "" ];then echo '缺少安装脚本版本...' exit 0 From 2215a7895e17682424ab62e350cf489669800fb6 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:57:18 +0800 Subject: [PATCH 69/98] update --- plugins/openresty/install.sh | 1 + plugins/openresty/versions/1.29.2/install.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 19f3f1356..dc5d32da4 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -5,6 +5,7 @@ export PATH # cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4 # cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4 # cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.29.2 +# cd /www/server/mdserver-web/plugins/openresty && bash install.sh upgrade 1.29.2 # curl -I -H "Accept-Encoding: br" http://localhost # curl --http3 -v https://www.xxx.com diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index f486ac250..877a25e3b 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -193,6 +193,10 @@ Uninstall_openresty() } action=$1 +if [ "${1}" == "upgrade" ];then + Install_openresty +fi + if [ "${1}" == "install" ];then Install_openresty else From 0ec2764369852d4d9435ad2df49140551adb27af Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:59:24 +0800 Subject: [PATCH 70/98] update --- plugins/openresty/versions/1.17.8/install.sh | 3 +++ plugins/openresty/versions/1.19.3/install.sh | 3 +++ plugins/openresty/versions/1.21.4/install.sh | 4 ++++ plugins/openresty/versions/1.25.3/install.sh | 4 ++++ plugins/openresty/versions/1.27.1/install.sh | 4 ++++ 5 files changed, 18 insertions(+) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index a63180f5d..9a4306ce5 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -183,6 +183,9 @@ Uninstall_openresty() } action=$1 +if [ "${1}" == "upgrade" ];then + Install_openresty +fi if [ "${1}" == 'install' ];then Install_openresty else diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 3e30844d0..553529606 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -183,6 +183,9 @@ Uninstall_openresty() } action=$1 +if [ "${1}" == "upgrade" ];then + Install_openresty +fi if [ "${1}" == 'install' ];then Install_openresty else diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index b534784f7..2a281392a 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -182,6 +182,10 @@ Uninstall_openresty() } action=$1 +if [ "${1}" == "upgrade" ];then + Install_openresty +fi + if [ "${1}" == 'install' ];then Install_openresty else diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 61d3fd111..004fb0bbb 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -197,6 +197,10 @@ Uninstall_openresty() } action=$1 +if [ "${1}" == "upgrade" ];then + Install_openresty +fi + if [ "${1}" == 'install' ];then Install_openresty else diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 34a3ac175..ada64c5f1 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -188,6 +188,10 @@ Uninstall_openresty() } action=$1 +if [ "${1}" == "upgrade" ];then + Install_openresty +fi + if [ "${1}" == 'install' ];then Install_openresty else From 57ddcb47f26de08dbae77f812fd9d11854b5ce90 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:09:19 +0800 Subject: [PATCH 71/98] update --- plugins/openresty/versions/1.17.8/install.sh | 5 ++--- plugins/openresty/versions/1.19.3/install.sh | 5 ++--- plugins/openresty/versions/1.21.4/install.sh | 6 ++---- plugins/openresty/versions/1.25.3/install.sh | 6 ++---- plugins/openresty/versions/1.27.1/install.sh | 6 ++---- plugins/openresty/versions/1.29.2/install.sh | 6 ++---- 6 files changed, 12 insertions(+), 22 deletions(-) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index 9a4306ce5..b39d96f91 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -183,10 +183,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "upgrade" ];then +if [ "${1}" == "install" ];then Install_openresty -fi -if [ "${1}" == 'install' ];then +elif [ "${1}" == "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 553529606..3d7002516 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -183,10 +183,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "upgrade" ];then +if [ "${1}" == "install" ];then Install_openresty -fi -if [ "${1}" == 'install' ];then +elif [ "${1}" == "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 2a281392a..6062e7303 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -182,11 +182,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "upgrade" ];then +if [ "${1}" == "install" ];then Install_openresty -fi - -if [ "${1}" == 'install' ];then +elif [ "${1}" == "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 004fb0bbb..ca624ccf7 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -197,11 +197,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "upgrade" ];then +if [ "${1}" == "install" ];then Install_openresty -fi - -if [ "${1}" == 'install' ];then +elif [ "${1}" == "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index ada64c5f1..4ec9269d2 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -188,11 +188,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "upgrade" ];then +if [ "${1}" == "install" ];then Install_openresty -fi - -if [ "${1}" == 'install' ];then +elif [ "${1}" == "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 877a25e3b..8d75956e0 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -193,12 +193,10 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "upgrade" ];then - Install_openresty -fi - if [ "${1}" == "install" ];then Install_openresty +elif [ "${1}" == "upgrade" ];then + Install_openresty else Uninstall_openresty fi From e51e2dfe275beceee59b721cff9308e43d081ecb Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:12:58 +0800 Subject: [PATCH 72/98] Update install.sh --- plugins/openresty/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index dc5d32da4..9a4e4d04f 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -33,6 +33,8 @@ else fi if [ "${action}" == "upgrade" ];then + sh -x $curPath/versions/$2/install.sh $1 + echo "${VERSION}" > $serverPath/openresty/version.pl mkdir -p $serverPath/web_conf/php/conf @@ -41,6 +43,7 @@ if [ "${action}" == "upgrade" ];then #初始化 cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install + exit 0 fi From 70005b3b822784c3653392975c1581184f138a13 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:14:47 +0800 Subject: [PATCH 73/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 8d75956e0..3e8db97de 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${1}" == "upgrade" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ From dfca75f19ac67bf59857f625c45d846d5b7ebd55 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:16:07 +0800 Subject: [PATCH 74/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 3e8db97de..cd8c49533 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,7 +20,7 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ "${1}" == "upgrade" ];then + if [ "${action}" == "install" ];then if [ -d $serverPath/openresty ];then exit 0 fi From c7325645bef0c51a23177b946a775e1f80bccd2d Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:16:53 +0800 Subject: [PATCH 75/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index cd8c49533..a5da7174b 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,6 +20,7 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { + echo "action:${action}" if [ "${action}" == "install" ];then if [ -d $serverPath/openresty ];then exit 0 From 30f499f3cd96cd650bfad56d1e5a0fd11ae04553 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:22:17 +0800 Subject: [PATCH 76/98] update --- plugins/openresty/versions/1.17.8/install.sh | 6 ++++-- plugins/openresty/versions/1.19.3/install.sh | 6 ++++-- plugins/openresty/versions/1.21.4/install.sh | 6 ++++-- plugins/openresty/versions/1.25.3/install.sh | 6 ++++-- plugins/openresty/versions/1.27.1/install.sh | 6 ++++-- plugins/openresty/versions/1.29.2/install.sh | 1 - 6 files changed, 20 insertions(+), 11 deletions(-) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index b39d96f91..051a3a9db 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -19,8 +19,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 3d7002516..f81e6b2be 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -19,8 +19,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 6062e7303..01b56bf5c 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index ca624ccf7..55584a5fa 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 4ec9269d2..046df91a4 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index a5da7174b..cd8c49533 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,7 +20,6 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - echo "action:${action}" if [ "${action}" == "install" ];then if [ -d $serverPath/openresty ];then exit 0 From dd32fc58ebf7288f5974cfaf27d2d77ac3d18be0 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:35:43 +0800 Subject: [PATCH 77/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index eb8e0bd2f..323661381 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -557,7 +557,7 @@ class sites(object): http_ssl = "\n\tlisten 443 ssl;" http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): - http_ssl = http_ssl + "\n\tlisten 443 quic reuseport;" + http_ssl = http_ssl + "\n\tlisten 443 quic;#reuseport" http_ssl = http_ssl + "\n\thttp3 on;" http_ssl = http_ssl + "\n\thttp2 on;" From f143e2ea4912a40cf278e2c033b9b9d68c6c5920 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:44:36 +0800 Subject: [PATCH 78/98] Update site.py --- web/utils/site.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web/utils/site.py b/web/utils/site.py index 323661381..4e664e58e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -558,6 +558,7 @@ class sites(object): http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 quic;#reuseport" + http_ssl = http_ssl + "\n\tlisten [::]:443 quic;#reuseport" http_ssl = http_ssl + "\n\thttp3 on;" http_ssl = http_ssl + "\n\thttp2 on;" From 772ba401083ec3fc28a669a690912efab4206eea Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:44:44 +0800 Subject: [PATCH 79/98] Update site.py --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 4e664e58e..4ac5993ad 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -558,7 +558,7 @@ class sites(object): http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): http_ssl = http_ssl + "\n\tlisten 443 quic;#reuseport" - http_ssl = http_ssl + "\n\tlisten [::]:443 quic;#reuseport" + http_ssl = http_ssl + "\n\tlisten [::]:443 quic;" http_ssl = http_ssl + "\n\thttp3 on;" http_ssl = http_ssl + "\n\thttp2 on;" From ab228bb8d4a9a8b7dec125d2e60a4a034e33c6b6 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 10:33:27 +0800 Subject: [PATCH 80/98] Update push_ad.py --- plugins/tgbot/startup/extend/push_ad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tgbot/startup/extend/push_ad.py b/plugins/tgbot/startup/extend/push_ad.py index 5539927b0..d39574db7 100644 --- a/plugins/tgbot/startup/extend/push_ad.py +++ b/plugins/tgbot/startup/extend/push_ad.py @@ -47,7 +47,7 @@ def send_msg(bot, tag='ad', trigger_time=300): keyboard = [ [ types.InlineKeyboardButton( - text="海内外实名KYC-执照代付✅域名", url='https://t.me/kdgzs') + text="海内外实名KYC-执照代付✅域名", url='https://t.me/kuadugongzuoshi') ], [ types.InlineKeyboardButton( From dc69407d76eb240d8c6860a8ccefd110d21734a6 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 10:51:29 +0800 Subject: [PATCH 81/98] Update push_notice_msg.py --- plugins/tgbot/startup/extend/push_notice_msg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tgbot/startup/extend/push_notice_msg.py b/plugins/tgbot/startup/extend/push_notice_msg.py index f1869e359..27830845c 100644 --- a/plugins/tgbot/startup/extend/push_notice_msg.py +++ b/plugins/tgbot/startup/extend/push_notice_msg.py @@ -62,7 +62,7 @@ def send_msg(bot, tag='ad', trigger_time=300): keyboard = [ [ types.InlineKeyboardButton( - text="海内外实名KYC-执照代付✅域名", url='https://t.me/kdgzs') + text="海内外实名KYC-执照代付✅域名", url='https://t.me/kuadugongzuoshi') ], [ types.InlineKeyboardButton( From d42e28f71316bc7ba7dd2ae1eb786c8fae37c116 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 11:09:37 +0800 Subject: [PATCH 82/98] Update site.py --- web/utils/site.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/utils/site.py b/web/utils/site.py index 4ac5993ad..3ebf53a27 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1531,7 +1531,10 @@ location ^~ {from} {\n\ proxy_set_header Upgrade $http_upgrade;\n\ proxy_set_header Connection $connection_upgrade;\n\ proxy_http_version 1.1;\n\ + proxy_set_header User-Agent $http_user_agent;\n\ proxy_set_header X-Forwarded-Proto $scheme;\n\ + proxy_set_header X-Forwarded-Host $http_host;\n\ + proxy_set_header X-Forwarded-Port $server_port;\n\ \n\ {proxy_cache}\n\ }\n\ From 013d53c346d89b682a38ee4f1289802e53d21c0b Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 11:33:11 +0800 Subject: [PATCH 83/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index cd8c49533..c2913b013 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -143,6 +143,13 @@ Install_openresty() OPTIONS="${OPTIONS} --with-file-aio" OPTIONS="${OPTIONS} --with-pcre-jit" OPTIONS="${OPTIONS} --with-http_gzip_static_module" + + + if [ ! -d ${openrestyDir}/zstd-nginx-module ];then + cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz + cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + fi + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ From dee60a5a3419b0e7208effa9347069144a6a49ff Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 11:37:38 +0800 Subject: [PATCH 84/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index c2913b013..bce6d6e97 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -148,6 +148,9 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + cd ${openrestyDir}/zstd-nginx-module-master + + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" fi From 91f75c60c67145d86339fc337ac9606424cb6ba7 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 11:52:02 +0800 Subject: [PATCH 85/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index bce6d6e97..fb2b3e912 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -148,8 +148,6 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - cd ${openrestyDir}/zstd-nginx-module-master - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" fi From 58fbd9c581255e024aa92e9f45f19a6af40d6cfa Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 11:52:44 +0800 Subject: [PATCH 86/98] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index fb2b3e912..bb82e5c31 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -191,6 +191,10 @@ Install_openresty() rm -rf $openrestyDir/openresty-${VERSION} fi + if [ -d $openrestyDir/zstd-nginx-module-master ];then + rm -rf $openrestyDir/zstd-nginx-module-master + fi + # if [ -d $openrestyDir/ngx_brotli ];then # rm -rf $openrestyDir/ngx_brotli # fi From 16c8c3c873b45c00ac1f95e0a18e44fb926402e3 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 12:30:09 +0800 Subject: [PATCH 87/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 6c4257f72..8a1b8daf3 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -55,6 +55,25 @@ http fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; + zstd on; + zstd_comp_level 6; + zstd_min_length 256; + zstd_types text/plain text/css text/xml text/javascript text/cache-manifest +text/vtt text/x-component application/javascript application/json +application/ld+json application/xml application/xhtml+xml +application/rss+xml application/atom+xml application/manifest+json +application/x-web-app-manifest+json application/vnd.geo+json +application/vnd.ms-fontobject application/x-font-ttf application/wasm +font/opentype image/svg+xml image/bmp; + + brotli on; + brotli_min_length 256; + brotli_buffers 32 8k; + brotli_comp_level 6; + brotli_window 16m; + brotli_static on; + brotli_types text/plain text/css text/xml text/javascript text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype font/tpl font/opentype font/otf font/ttf image/svg+xml image/x-icon image/vnd.microsoft.icon application/wasm application/manifest+json; + gzip on; gzip_min_length 1k; gzip_buffers 4 16k; @@ -65,13 +84,6 @@ http gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; - brotli on; - brotli_min_length 256; - brotli_buffers 32 8k; - brotli_comp_level 6; - brotli_window 16m; - brotli_static on; - brotli_types text/plain text/css text/xml text/javascript text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype font/tpl font/opentype font/otf font/ttf image/svg+xml image/x-icon image/vnd.microsoft.icon application/wasm application/manifest+json; limit_conn_zone $binary_remote_addr zone=perip:10m; limit_conn_zone $server_name zone=perserver:10m; From 127e3ae325f8899b92ef49be662de7ce599a17a4 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 12:31:24 +0800 Subject: [PATCH 88/98] openresty --- plugins/openresty/versions/1.17.8/install.sh | 7 ++++++- plugins/openresty/versions/1.19.3/install.sh | 6 ++++++ plugins/openresty/versions/1.21.4/install.sh | 6 ++++++ plugins/openresty/versions/1.25.3/install.sh | 6 ++++++ plugins/openresty/versions/1.27.1/install.sh | 7 +++++++ 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index 051a3a9db..0c34f925d 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -137,7 +137,12 @@ Install_openresty() OPTIONS="${OPTIONS} --with-pcre-jit" OPTIONS="${OPTIONS} --with-http_gzip_static_module" - + if [ ! -d ${openrestyDir}/zstd-nginx-module ];then + cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz + cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index f81e6b2be..bf1444380 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -138,6 +138,12 @@ Install_openresty() OPTIONS="${OPTIONS} --with-pcre-jit" OPTIONS="${OPTIONS} --with-http_gzip_static_module" + if [ ! -d ${openrestyDir}/zstd-nginx-module ];then + cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz + cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 01b56bf5c..3aede1fa2 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -137,6 +137,12 @@ Install_openresty() OPTIONS="${OPTIONS} --with-pcre-jit" OPTIONS="${OPTIONS} --with-http_gzip_static_module" + if [ ! -d ${openrestyDir}/zstd-nginx-module ];then + cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz + cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 55584a5fa..3fe90be84 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -153,6 +153,12 @@ Install_openresty() OPTIONS="${OPTIONS} --with-pcre-jit" OPTIONS="${OPTIONS} --with-http_gzip_static_module" + if [ ! -d ${openrestyDir}/zstd-nginx-module ];then + cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz + cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ $OPTIONS \ diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 046df91a4..274aa0b9f 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -144,6 +144,13 @@ Install_openresty() OPTIONS="${OPTIONS} --with-pcre-jit" OPTIONS="${OPTIONS} --with-http_gzip_static_module" + if [ ! -d ${openrestyDir}/zstd-nginx-module ];then + cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz + cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi + + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ $OPTIONS \ From 86d3dd2c887ccea43b10d9d022e76b55a3e0250d Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:13:59 +0800 Subject: [PATCH 89/98] bash zstd --- scripts/install/alma.sh | 1 + scripts/install/alpine.sh | 1 + scripts/install/amazon.sh | 1 + scripts/install/centos.sh | 1 + scripts/install/debian.sh | 2 +- scripts/install/euler.sh | 1 + scripts/install/fedora.sh | 1 + scripts/install/freebsd.sh | 1 + scripts/install/opensuse.sh | 2 ++ scripts/install/rhel.sh | 1 + scripts/install/rocky.sh | 3 ++- scripts/install/ubuntu.sh | 1 + 12 files changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/install/alma.sh b/scripts/install/alma.sh index 016409759..227c1cf56 100755 --- a/scripts/install/alma.sh +++ b/scripts/install/alma.sh @@ -20,6 +20,7 @@ yum install -y bzip2-devel yum install -y ncurses-compat-libs yum install -y numactl yum install -y sshpass +yum install -y libzstd-devel SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` if [ "$SSH_PORT" == "" ];then diff --git a/scripts/install/alpine.sh b/scripts/install/alpine.sh index cd1afdd2c..ac879c9a0 100644 --- a/scripts/install/alpine.sh +++ b/scripts/install/alpine.sh @@ -56,6 +56,7 @@ apk add libargon2-devel --force-broken-world apk add net-tools-deprecated --force-broken-world apk add numactl --force-broken-world +apk add libzstd-devel --force-broken-world # apk add php-config diff --git a/scripts/install/amazon.sh b/scripts/install/amazon.sh index 9f3a9b5da..a16134e47 100755 --- a/scripts/install/amazon.sh +++ b/scripts/install/amazon.sh @@ -28,6 +28,7 @@ yum install -y bzip2-devel yum install -y ncurses-compat-libs yum install -y numactl yum install -y sshpass +yum install -y libzstd-devel SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` if [ "$SSH_PORT" == "" ];then diff --git a/scripts/install/centos.sh b/scripts/install/centos.sh index 12587a87c..6e8ed3429 100755 --- a/scripts/install/centos.sh +++ b/scripts/install/centos.sh @@ -38,6 +38,7 @@ yum install -y bzip2-devel yum install -y ncurses-compat-libs yum install -y numactl yum install -y sshpass +yum install -y libzstd-devel # if [ -f /usr/sbin/iptables ];then diff --git a/scripts/install/debian.sh b/scripts/install/debian.sh index ad2081da6..9d773b754 100644 --- a/scripts/install/debian.sh +++ b/scripts/install/debian.sh @@ -247,7 +247,7 @@ apt install -y protobuf-compiler apt install -y libboost-dev apt install -y liblz4-tool apt install -y zstd - +apt install -y libzstd-dev # Disabled due to dependency issues #apt install --ignore-missing -y autoconf automake cmake curl dia gcc imagemagick libbz2-dev libcurl4-gnutls-dev\ diff --git a/scripts/install/euler.sh b/scripts/install/euler.sh index 36adf21ee..56ce3fc42 100755 --- a/scripts/install/euler.sh +++ b/scripts/install/euler.sh @@ -38,6 +38,7 @@ yum install -y bzip2-devel yum install -y ncurses-compat-libs yum install -y numactl yum install -y sshpass +yum install -y libzstd-devel # if [ -f /usr/sbin/iptables ];then diff --git a/scripts/install/fedora.sh b/scripts/install/fedora.sh index 235d9b037..e895baffb 100644 --- a/scripts/install/fedora.sh +++ b/scripts/install/fedora.sh @@ -18,6 +18,7 @@ yum install -y expect yum install -y ncurses-compat-libs yum install -y numactl yum install -y sshpass +yum install -y libzstd-devel dnf install crontabs -y SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` diff --git a/scripts/install/freebsd.sh b/scripts/install/freebsd.sh index a2dbb9530..09d1624c2 100644 --- a/scripts/install/freebsd.sh +++ b/scripts/install/freebsd.sh @@ -66,6 +66,7 @@ pkg install -y bzip2 pkg install -y bzip2-devel pkg install -y numactl pkg install -y sshpass +pkg install -y libzstd-devel # curl https://sh.rustup.rs -sSf | sh pkg install -y rust diff --git a/scripts/install/opensuse.sh b/scripts/install/opensuse.sh index 0358ed75b..d1190256c 100644 --- a/scripts/install/opensuse.sh +++ b/scripts/install/opensuse.sh @@ -33,6 +33,7 @@ zypper install -y pv zypper install -y bc zypper install -y bzip2 + zypper install -y libzip libzip-devel zypper install -y unrar rar zypper install -y libmemcached libmemcached-devel @@ -40,6 +41,7 @@ zypper install -y libmemcached libmemcached-devel zypper install -y icu libicu-devel zypper install -y sqlite3 sqlite3-devel zypper install -y oniguruma-devel +zypper install -y libzstd-devel # zypper install -y libmcrypt libmcrypt-devel # zypper install -y protobuf diff --git a/scripts/install/rhel.sh b/scripts/install/rhel.sh index dfab7acf2..f17fe7139 100644 --- a/scripts/install/rhel.sh +++ b/scripts/install/rhel.sh @@ -44,6 +44,7 @@ $PKGMGR install -y mmap-devel $PKGMGR install -y libncurses* $PKGMGR install -y sshpass +$PKGMGR install -y libzstd-devel echo "install remi source" if [ "$VERSION_ID" == "9" ];then diff --git a/scripts/install/rocky.sh b/scripts/install/rocky.sh index d5b2e15c8..ba460a15a 100644 --- a/scripts/install/rocky.sh +++ b/scripts/install/rocky.sh @@ -27,7 +27,8 @@ yum install -y libzip-devel yum install -y re2c yum install -y ncurses-compat-libs yum install -y numactl -apt install -y sshpass +yum install -y sshpass +yum install -y libzstd-devel if [ -f /usr/sbin/iptables ];then diff --git a/scripts/install/ubuntu.sh b/scripts/install/ubuntu.sh index 38e420b90..3f1b0c436 100644 --- a/scripts/install/ubuntu.sh +++ b/scripts/install/ubuntu.sh @@ -60,6 +60,7 @@ apt install -y libboost-dev apt install -y liblz4-tool apt install -y zstd apt install -y sshpass +apt install -y libzstd-dev P_VER=`python3 -V | awk '{print $2}'` if version_ge "$P_VER" "3.11.0" ;then From e1fe3d959a569bd6e2d7690e3837d5eca5cda104 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:17:45 +0800 Subject: [PATCH 90/98] update --- plugins/openresty/versions/1.17.8/install.sh | 8 ++++++-- plugins/openresty/versions/1.19.3/install.sh | 6 +++++- plugins/openresty/versions/1.21.4/install.sh | 6 +++++- plugins/openresty/versions/1.25.3/install.sh | 6 +++++- plugins/openresty/versions/1.27.1/install.sh | 8 ++++++-- plugins/openresty/versions/1.29.2/install.sh | 6 +++++- 6 files changed, 32 insertions(+), 8 deletions(-) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index 0c34f925d..53cf19aad 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -140,9 +140,13 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + + pkg-config --exists --print-errors libzstd + if [ "$?" == "0" ];then + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi fi - + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index bf1444380..3437172f8 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -141,7 +141,11 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + + pkg-config --exists --print-errors libzstd + if [ "$?" == "0" ];then + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi fi diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 3aede1fa2..8ec9f2e5f 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -140,7 +140,11 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + + pkg-config --exists --print-errors libzstd + if [ "$?" == "0" ];then + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi fi # --with-openssl=$serverPath/source/lib/openssl-1.0.2q diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 3fe90be84..6d5233b72 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -156,7 +156,11 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + + pkg-config --exists --print-errors libzstd + if [ "$?" == "0" ];then + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi fi cd ${openrestyDir}/openresty-${VERSION} && ./configure \ diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 274aa0b9f..b25b41cb1 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -147,9 +147,13 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + + pkg-config --exists --print-errors libzstd + if [ "$?" == "0" ];then + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi fi - + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index bb82e5c31..c2be5790d 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -148,7 +148,11 @@ Install_openresty() if [ ! -d ${openrestyDir}/zstd-nginx-module ];then cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + + pkg-config --exists --print-errors libzstd + if [ "$?" == "0" ];then + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master" + fi fi From f82eaee49e40ddaca4c15e8fd448a2432d784eed Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:19:13 +0800 Subject: [PATCH 91/98] Update alpine.sh --- scripts/install/alpine.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install/alpine.sh b/scripts/install/alpine.sh index ac879c9a0..b69eff498 100644 --- a/scripts/install/alpine.sh +++ b/scripts/install/alpine.sh @@ -56,7 +56,7 @@ apk add libargon2-devel --force-broken-world apk add net-tools-deprecated --force-broken-world apk add numactl --force-broken-world -apk add libzstd-devel --force-broken-world +apk add zstd-dev --force-broken-world # apk add php-config From 7e4b60358295abbcf4c6b3a52864007a51b06e17 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:47:53 +0800 Subject: [PATCH 92/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 8a1b8daf3..6225aa7b9 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -55,10 +55,10 @@ http fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; - zstd on; - zstd_comp_level 6; - zstd_min_length 256; - zstd_types text/plain text/css text/xml text/javascript text/cache-manifest + #zstd on; + #zstd_comp_level 6; + #zstd_min_length 256; + #zstd_types text/plain text/css text/xml text/javascript text/cache-manifest text/vtt text/x-component application/javascript application/json application/ld+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/manifest+json From e1f7ea8f18dca52c1e047b55b94619d42209959c Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:53:53 +0800 Subject: [PATCH 93/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 6225aa7b9..eeff6b785 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -58,13 +58,7 @@ http #zstd on; #zstd_comp_level 6; #zstd_min_length 256; - #zstd_types text/plain text/css text/xml text/javascript text/cache-manifest -text/vtt text/x-component application/javascript application/json -application/ld+json application/xml application/xhtml+xml -application/rss+xml application/atom+xml application/manifest+json -application/x-web-app-manifest+json application/vnd.geo+json -application/vnd.ms-fontobject application/x-font-ttf application/wasm -font/opentype image/svg+xml image/bmp; + #zstd_types text/plain text/css text/xml text/javascript text/cache-manifest text/x-component application/javascript application/json application/ld+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/manifest+json application/x-web-app-manifest+json application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/wasm font/opentype image/svg+xml image/bmp; brotli on; brotli_min_length 256; From 36929f3ab4badf5f8b5756afc67d0eea2d4a06da Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:54:14 +0800 Subject: [PATCH 94/98] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index eeff6b785..0316650d5 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -58,7 +58,7 @@ http #zstd on; #zstd_comp_level 6; #zstd_min_length 256; - #zstd_types text/plain text/css text/xml text/javascript text/cache-manifest text/x-component application/javascript application/json application/ld+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/manifest+json application/x-web-app-manifest+json application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/wasm font/opentype image/svg+xml image/bmp; + #zstd_types text/plain text/css text/xml text/javascript text/cache-manifest text/x-component text/vtt application/javascript application/json application/ld+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/manifest+json application/x-web-app-manifest+json application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/wasm font/opentype image/svg+xml image/bmp; brotli on; brotli_min_length 256; From 2965df19cb4b3979fab7db9e5282e9de5135810b Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 13:57:58 +0800 Subject: [PATCH 95/98] Update site.py --- web/utils/site.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 3ebf53a27..e772599b9 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -560,8 +560,7 @@ class sites(object): http_ssl = http_ssl + "\n\tlisten 443 quic;#reuseport" http_ssl = http_ssl + "\n\tlisten [::]:443 quic;" http_ssl = http_ssl + "\n\thttp3 on;" - - http_ssl = http_ssl + "\n\thttp2 on;" + http_ssl = http_ssl + "\n\thttp2 on;" conf = conf.replace(listen, listen + http_ssl) mw.backFile(file) From 28bb578170623c8b8ec0e859e17a430a23897e8d Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 14:07:25 +0800 Subject: [PATCH 96/98] Update site.py --- web/utils/site.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index e772599b9..93c407196 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -554,13 +554,16 @@ class sites(object): tmp = re.findall(rep, conf) if not mw.inArray(tmp, '443'): listen = re.search(rep, conf).group() - http_ssl = "\n\tlisten 443 ssl;" - http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" if mw.isSupportHttp3(version): + http_ssl = "\n\tlisten 443 ssl;" + http_ssl = http_ssl + "\n\tlisten [::]:443 ssl;" http_ssl = http_ssl + "\n\tlisten 443 quic;#reuseport" http_ssl = http_ssl + "\n\tlisten [::]:443 quic;" http_ssl = http_ssl + "\n\thttp3 on;" http_ssl = http_ssl + "\n\thttp2 on;" + else: + http_ssl = "\n\tlisten 443 ssl thttp2;" + http_ssl = http_ssl + "\n\tlisten [::]:443 ssl thttp2;" conf = conf.replace(listen, listen + http_ssl) mw.backFile(file) From cd1885477da19cd8e19977ee323c49795b94a599 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 14:08:08 +0800 Subject: [PATCH 97/98] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index 93c407196..d7409e11a 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -562,8 +562,8 @@ class sites(object): http_ssl = http_ssl + "\n\thttp3 on;" http_ssl = http_ssl + "\n\thttp2 on;" else: - http_ssl = "\n\tlisten 443 ssl thttp2;" - http_ssl = http_ssl + "\n\tlisten [::]:443 ssl thttp2;" + http_ssl = "\n\tlisten 443 ssl http2;" + http_ssl = http_ssl + "\n\tlisten [::]:443 ssl http2;" conf = conf.replace(listen, listen + http_ssl) mw.backFile(file) From 8aaf0eb99eedec5d6e0f3a8e51a39414d815b99b Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 14:11:28 +0800 Subject: [PATCH 98/98] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index d7409e11a..912b57814 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -532,8 +532,8 @@ class sites(object): add_header Alt-Svc 'h3=":443";ma=86400' always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; """ - # if not version.startswith('1.25') or version.startswith('1.27'): - # http3Header = ''; + if not mw.isSupportHttp3(version): + http3Header = ''; sslStr = """#error_page 404/404.html; ssl_certificate %s;