Skip brotli module entirely for non-64bit archs

This commit is contained in:
Jamie Curnow
2024-10-18 07:05:58 +10:00
parent 34baebfb61
commit 88a1005ba4
2 changed files with 19 additions and 14 deletions
+6 -1
View File
@@ -17,6 +17,11 @@ git clone https://github.com/leev/ngx_http_geoip2_module.git
mv /tmp/ngx_http_geoip2_module /tmp/openresty/ngx_http_geoip2_module
cd /tmp/openresty
BROTI_MODULE="--add-module=/tmp/ngx_brotli"
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then
BROTI_MODULE=
fi
./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
@@ -57,7 +62,7 @@ cd /tmp/openresty
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--add-dynamic-module=/tmp/openresty/ngx_http_geoip2_module \
--add-module=/tmp/ngx_brotli
${BROTI_MODULE}
make -j2