mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
openresty 所有版本加入br的扩展
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user