From 769764ad173d21ec022fcc49650d3cd86bbcdfc9 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 20:49:26 +0800 Subject: [PATCH 01/25] 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 72b10158b..b064de3cc 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -135,6 +135,7 @@ Install_openresty() $OPTIONS \ --with-stream \ --with-http_v2_module \ + --with-http_v3_module \ --with-http_ssl_module \ --with-http_slice_module \ --with-http_stub_status_module \ From e4bf1f0d53fca78a51b99bbf50c217ad4eee2d5d Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 22:18:23 +0800 Subject: [PATCH 02/25] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index b064de3cc..67f034878 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -114,7 +114,7 @@ Install_openresty() fi - if [[ "$VERSION" =~ "1.25.3" ]] || [[ "$VERSION" =~ "1.27.1" ]];then + if [[ "$VERSION" =~ "1.29.2" ]];then OPTIONS="${OPTIONS} --with-http_v3_module" if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then @@ -135,7 +135,6 @@ Install_openresty() $OPTIONS \ --with-stream \ --with-http_v2_module \ - --with-http_v3_module \ --with-http_ssl_module \ --with-http_slice_module \ --with-http_stub_status_module \ From 48bcb80dd76735284a65d42406dc4f24648e2171 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 22:25:26 +0800 Subject: [PATCH 03/25] 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 67f034878..44de9bfe6 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -72,7 +72,7 @@ Install_openresty() OPTIONS='' - opensslVersion="1.1.1p" + opensslVersion="3.4.4" libresslVersion="3.9.1" pcreVersion='8.38' if [ "$sysName" == "Darwin" ];then From ca20d585da7000af84e83f81928affb1f3ee0d28 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 22:27:58 +0800 Subject: [PATCH 04/25] 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 44de9bfe6..d1e840295 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -74,7 +74,7 @@ Install_openresty() 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 9b72c785b59d2973f0a8bd2989021ac84a11d472 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 22:49:46 +0800 Subject: [PATCH 05/25] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index d1e840295..939942013 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -130,6 +130,14 @@ Install_openresty() fi + NGX_BR_ADDR="https://github.com//google/ngx_brotli/archive/refs/heads/master.zip" + if [ ! -f ${openrestyDir}/ngx_brotli.tar.gz ];then + wget --no-check-certificate -O ${openrestyDir}/ngx_brotli.tar.gz ${NGX_BR_ADDR} -T 3 + cd ${openrestyDir} && tar -zxvf ngx_brotli.tar.gz + fi + + + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ $OPTIONS \ From 04725db69904ee15ce59d24e01d69b2a9a760fd5 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 22:50:08 +0800 Subject: [PATCH 06/25] 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 66ac75122..2c57defab 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -4,6 +4,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 && python3 plugins/openresty/index.py run_info From 201ac15aea0c026bdd1877c7071d64d0714c3963 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:01:40 +0800 Subject: [PATCH 07/25] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 939942013..78a0140d7 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -130,12 +130,16 @@ Install_openresty() fi - NGX_BR_ADDR="https://github.com//google/ngx_brotli/archive/refs/heads/master.zip" + NGX_BR_ADDR="https://github.com//google/ngx_brotli/archive/refs/heads/master.tar.gz" if [ ! -f ${openrestyDir}/ngx_brotli.tar.gz ];then wget --no-check-certificate -O ${openrestyDir}/ngx_brotli.tar.gz ${NGX_BR_ADDR} -T 3 cd ${openrestyDir} && tar -zxvf ngx_brotli.tar.gz fi + if [ -d ${openrestyDir}/ngx_brotli-master ];then + OPTIONS="${OPTIONS} --with-compat --add-dynamic-module=${openrestyDir}/ngx_brotli-master" + fi + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ From 015c9010477c838a654d09c72b50ca91c2a2a357 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:08:23 +0800 Subject: [PATCH 08/25] 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 78a0140d7..1cf6b3b6b 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -130,7 +130,7 @@ Install_openresty() fi - NGX_BR_ADDR="https://github.com//google/ngx_brotli/archive/refs/heads/master.tar.gz" + NGX_BR_ADDR="https://github.com/wxx9248/ngx_brotli/archive/refs/heads/master.tar.gz" if [ ! -f ${openrestyDir}/ngx_brotli.tar.gz ];then wget --no-check-certificate -O ${openrestyDir}/ngx_brotli.tar.gz ${NGX_BR_ADDR} -T 3 cd ${openrestyDir} && tar -zxvf ngx_brotli.tar.gz From 5f26bdcefb92807dac08463f087832a561a4013f Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:13:55 +0800 Subject: [PATCH 09/25] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 1cf6b3b6b..f93d57d2f 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -129,18 +129,14 @@ Install_openresty() OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi + # br + if [ ! -f ${openrestyDir}/ngx_brotli ];then + cd ${openrestyDir} && git clone https://github.com/wxx9248/ngx_brotli.git + cd ${openrestyDir}/ngx_brotli && git submodule update --init - NGX_BR_ADDR="https://github.com/wxx9248/ngx_brotli/archive/refs/heads/master.tar.gz" - if [ ! -f ${openrestyDir}/ngx_brotli.tar.gz ];then - wget --no-check-certificate -O ${openrestyDir}/ngx_brotli.tar.gz ${NGX_BR_ADDR} -T 3 - cd ${openrestyDir} && tar -zxvf ngx_brotli.tar.gz + OPTIONS="${OPTIONS} --with-compat --add-dynamic-module=${openrestyDir}/ngx_brotli" fi - if [ -d ${openrestyDir}/ngx_brotli-master ];then - OPTIONS="${OPTIONS} --with-compat --add-dynamic-module=${openrestyDir}/ngx_brotli-master" - fi - - cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From a9536cccd1052b6b14c43d255dfeb7f8f5f578e2 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:15:28 +0800 Subject: [PATCH 10/25] 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 f93d57d2f..656223e74 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -14,7 +14,7 @@ sysName=`uname` action=$1 type=$2 -VERSION=1.29.2.1 +VERSION=1.29.2.3 openrestyDir=${serverPath}/source/openresty From ccf0b070b0dc82fa15acec5513c5db7950d4ec6a Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:17:08 +0800 Subject: [PATCH 11/25] 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 656223e74..2959fdfb1 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -175,6 +175,10 @@ Install_openresty() if [ -d $openrestyDir/openresty-${VERSION} ];then rm -rf $openrestyDir/openresty-${VERSION} fi + + # if [ -d $openrestyDir/ngx_brotli ];then + # rm -rf $openrestyDir/ngx_brotli + # fi echo 'Installation of Openresty completed' } From 7e9674c7a73da0913ca534b10ce4c2a6373c0d4f Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:41:06 +0800 Subject: [PATCH 12/25] Update install.sh --- plugins/openresty/versions/1.29.2/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 2959fdfb1..f04aa33a1 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -130,11 +130,11 @@ Install_openresty() fi # br - if [ ! -f ${openrestyDir}/ngx_brotli ];then - cd ${openrestyDir} && git clone https://github.com/wxx9248/ngx_brotli.git - cd ${openrestyDir}/ngx_brotli && git submodule update --init + if [ ! -f ${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} --with-compat --add-dynamic-module=${openrestyDir}/ngx_brotli" + OPTIONS="${OPTIONS} --add-module=./ngx_brotli" fi From 92f14b1c1227780fb394701feb526038534ab53e Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:41:37 +0800 Subject: [PATCH 13/25] 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 f04aa33a1..e1b2dc987 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -130,7 +130,7 @@ Install_openresty() fi # br - if [ ! -f ${openrestyDir}/openresty-${VERSION}/ngx_brotli ];then + 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 From 71392cd54f6ab62c284d427ed4ed5faeb68a7e85 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 31 Mar 2026 23:54:37 +0800 Subject: [PATCH 14/25] Update install.sh --- plugins/openresty/versions/1.17.8/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index 544c97b9f..0829061e4 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -113,6 +113,14 @@ Install_openresty() # OPTIONS="${OPTIONS} --with-openssl=${openrestyDir}/openssl-${opensslVersion}" fi + # 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=./ngx_brotli" + fi + # --with-openssl=$serverPath/source/lib/openssl-1.0.2q cd ${openrestyDir}/openresty-${VERSION} && ./configure \ From 8d032cd8672464e3a10db7af1e6fdd0f6617a833 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:05:10 +0800 Subject: [PATCH 15/25] Update nginx.conf --- plugins/openresty/conf/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index d0b66ff63..07cd73d9a 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -64,6 +64,14 @@ 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 a3ff2fbefee0a7f73f6876aa55f41a5a0036d212 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:12:31 +0800 Subject: [PATCH 16/25] Update install.sh --- plugins/openresty/versions/1.17.8/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index 0829061e4..ee8d30fd0 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -102,6 +102,15 @@ Install_openresty() # OPENSSL_LIB_DEPEND_DIR=`brew info openssl@1.1 | grep ${BREW_DIR}/Cellar/openssl@1.1 | cut -d \ -f 1 | awk 'END {print}'` # OPTIONS="${OPTIONS} --with-openssl=${OPENSSL_LIB_DEPEND_DIR}" else + if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then + wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz + fi + + if [ ! -d ${openrestyDir}/pcre-${pcreVersion} ];then + cd ${openrestyDir} && tar -zxvf pcre-${pcreVersion}.tar.gz + fi + OPTIONS="${OPTIONS} --with-pcre=${openrestyDir}/pcre-${pcreVersion}" + echo "openssl" # if [ ! -f ${openrestyDir}/openssl-${opensslVersion}.tar.gz ];then # wget --no-check-certificate -O ${openrestyDir}/openssl-${opensslVersion}.tar.gz https://www.openssl.org/source/openssl-${opensslVersion}.tar.gz From be79a9b4f92fcd087726377deac23ffa1bb1f880 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:13:38 +0800 Subject: [PATCH 17/25] Update install.sh --- plugins/openresty/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 2c57defab..9aa98a06c 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -6,6 +6,8 @@ export PATH # 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 +# curl -I -H "Accept-Encoding: br" http://localhost + # cd /www/server/mdserver-web && python3 plugins/openresty/index.py run_info curPath=`pwd` From e9f43cb6f421a9fded05305ea494704ae92f6dc4 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:17:53 +0800 Subject: [PATCH 18/25] =?UTF-8?q?openresty=20=E6=89=80=E6=9C=89=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8A=A0=E5=85=A5br=E7=9A=84=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/openresty/versions/1.19.3/install.sh | 8 ++++++++ plugins/openresty/versions/1.21.4/install.sh | 7 +++++++ plugins/openresty/versions/1.25.3/install.sh | 7 +++++++ plugins/openresty/versions/1.27.1/install.sh | 7 +++++++ 4 files changed, 29 insertions(+) diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 2af69a9b1..edee0287f 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -114,6 +114,14 @@ Install_openresty() # OPTIONS="${OPTIONS} --with-openssl=${openrestyDir}/openssl-${opensslVersion}" fi + # 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=./ngx_brotli" + 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 0ceaa3a91..477e49bcf 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -113,6 +113,13 @@ Install_openresty() OPTIONS="${OPTIONS} --with-openssl=${openrestyDir}/openssl-${opensslVersion}" fi + # 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=./ngx_brotli" + fi # --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 0becee2f0..075ef60f8 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -129,6 +129,13 @@ Install_openresty() OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi + # 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=./ngx_brotli" + fi 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 42704f27c..9208776d7 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -129,6 +129,13 @@ Install_openresty() OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi + # 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=./ngx_brotli" + fi cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ From b61256221ac3bceafbd97f1f127f2e4814cd36ab Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:24:09 +0800 Subject: [PATCH 19/25] Update install.sh --- plugins/openresty/versions/1.19.3/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index edee0287f..5b34d13b3 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -103,6 +103,15 @@ Install_openresty() # OPENSSL_LIB_DEPEND_DIR=`brew info openssl@1.1 | grep ${BREW_DIR}/Cellar/openssl@1.1 | cut -d \ -f 1 | awk 'END {print}'` # OPTIONS="${OPTIONS} --with-openssl=${OPENSSL_LIB_DEPEND_DIR}" else + if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then + wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz + fi + + if [ ! -d ${openrestyDir}/pcre-${pcreVersion} ];then + cd ${openrestyDir} && tar -zxvf pcre-${pcreVersion}.tar.gz + fi + OPTIONS="${OPTIONS} --with-pcre=${openrestyDir}/pcre-${pcreVersion}" + echo "openssl" # if [ ! -f ${openrestyDir}/openssl-${opensslVersion}.tar.gz ];then # wget --no-check-certificate -O ${openrestyDir}/openssl-${opensslVersion}.tar.gz https://www.openssl.org/source/openssl-${opensslVersion}.tar.gz From 87d9ce4486926ce657d2a66927b429668b2d8ceb Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:32:21 +0800 Subject: [PATCH 20/25] Update install.sh --- plugins/openresty/versions/1.21.4/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 477e49bcf..dcd36f627 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -103,6 +103,15 @@ Install_openresty() # OPENSSL_LIB_DEPEND_DIR=`brew info openssl@1.1 | grep ${BREW_DIR}/Cellar/openssl@1.1 | cut -d \ -f 1 | awk 'END {print}'` # OPTIONS="${OPTIONS} --with-openssl=${OPENSSL_LIB_DEPEND_DIR}" else + if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then + wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz + fi + + if [ ! -d ${openrestyDir}/pcre-${pcreVersion} ];then + cd ${openrestyDir} && tar -zxvf pcre-${pcreVersion}.tar.gz + fi + OPTIONS="${OPTIONS} --with-pcre=${openrestyDir}/pcre-${pcreVersion}" + if [ ! -f ${openrestyDir}/openssl-${opensslVersion}.tar.gz ];then wget --no-check-certificate -O ${openrestyDir}/openssl-${opensslVersion}.tar.gz https://www.openssl.org/source/openssl-${opensslVersion}.tar.gz fi From a9931b114eb259cdec1bb85fe3d3c68d69a924f2 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:44:32 +0800 Subject: [PATCH 21/25] Update mw.py --- web/core/mw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/core/mw.py b/web/core/mw.py index b68830a1e..b1ed1fe77 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -399,12 +399,12 @@ def systemdCfgDir(): return "/tmp" -def formatDate(format="%Y-%m-%d %H:%M:%S", times=None): +def formatDate(fmat="%Y-%m-%d %H:%M:%S", times=None): # 格式化指定时间戳 if not times: times = int(time.time()) time_local = time.localtime(times) - return time.strftime(format, time_local) + return time.strftime(fmat, time_local) def strfToTime(sdate): From f6d39c7be3d7a5757c4707bc400e1fde94138580 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:46:49 +0800 Subject: [PATCH 22/25] Update install.sh --- plugins/openresty/versions/1.25.3/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index 075ef60f8..32ac58f80 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -103,6 +103,15 @@ Install_openresty() # OPENSSL_LIB_DEPEND_DIR=`brew info openssl@1.1 | grep ${BREW_DIR}/Cellar/openssl@1.1 | cut -d \ -f 1 | awk 'END {print}'` # OPTIONS="${OPTIONS} --with-openssl=${OPENSSL_LIB_DEPEND_DIR}" else + if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then + wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz + fi + + if [ ! -d ${openrestyDir}/pcre-${pcreVersion} ];then + cd ${openrestyDir} && tar -zxvf pcre-${pcreVersion}.tar.gz + fi + OPTIONS="${OPTIONS} --with-pcre=${openrestyDir}/pcre-${pcreVersion}" + if [ ! -f ${openrestyDir}/openssl-${opensslVersion}.tar.gz ];then wget --no-check-certificate -O ${openrestyDir}/openssl-${opensslVersion}.tar.gz https://www.openssl.org/source/openssl-${opensslVersion}.tar.gz fi From 90306280908e512f8c911d517d46d899df4f9a35 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:52:26 +0800 Subject: [PATCH 23/25] Update mw.py --- web/core/mw.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/web/core/mw.py b/web/core/mw.py index b1ed1fe77..8e1a81e69 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -399,12 +399,26 @@ def systemdCfgDir(): return "/tmp" -def formatDate(fmat="%Y-%m-%d %H:%M:%S", times=None): +def formatDate(fmat="%Y-%m-%d %H:%M:%S", times=None, time_zone=None): # 格式化指定时间戳 if not times: times = int(time.time()) - time_local = time.localtime(times) - return time.strftime(fmat, time_local) + + if time_zone: + old_tz = os.environ.get('TZ') + os.environ['TZ'] = time_zone + time.tzset() + time_local = time.localtime(times) + result = time.strftime(fmat, time_local) + if old_tz: + os.environ['TZ'] = old_tz + else: + del os.environ['TZ'] + time.tzset() + return result + else: + time_local = time.localtime(times) + return time.strftime(fmat, time_local) def strfToTime(sdate): From 86eb3444921f98fccd19a3a19e6152b611027d1f Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 00:56:32 +0800 Subject: [PATCH 24/25] Update mw.py --- web/core/mw.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/core/mw.py b/web/core/mw.py index 8e1a81e69..e5a8b293c 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -404,6 +404,16 @@ def formatDate(fmat="%Y-%m-%d %H:%M:%S", times=None, time_zone=None): if not times: times = int(time.time()) + if time_zone is None: + try: + import tzlocal + time_zone = str(tzlocal.get_localzone()) + except: + try: + time_zone = time.tzname[0] + except: + time_zone = None + if time_zone: old_tz = os.environ.get('TZ') os.environ['TZ'] = time_zone From 43cf348b72a39118c3b1be0b1c6847847436e943 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 1 Apr 2026 01:16:49 +0800 Subject: [PATCH 25/25] Update mw.py --- web/core/mw.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/core/mw.py b/web/core/mw.py index e5a8b293c..208d049b2 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -404,15 +404,15 @@ def formatDate(fmat="%Y-%m-%d %H:%M:%S", times=None, time_zone=None): if not times: times = int(time.time()) - if time_zone is None: - try: - import tzlocal - time_zone = str(tzlocal.get_localzone()) - except: - try: - time_zone = time.tzname[0] - except: - time_zone = None + # if time_zone is None: + # try: + # import tzlocal + # time_zone = str(tzlocal.get_localzone()) + # except: + # try: + # time_zone = time.tzname[0] + # except: + # time_zone = None if time_zone: old_tz = os.environ.get('TZ')