File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,9 @@ ngx_module_order="$ngx_module_name \
128128if [ "$ngx_module_link" != DYNAMIC ]; then
129129 # ngx_module_order doesn't work with static modules,
130130 # so we must re-order filters here.
131-
132- if [ "$HTTP_GZIP" = YES ]; then
131+ if echo $HTTP_FILTER_MODULES | grep ngx_http_brotli_filter_module >/dev/null; then
132+ next=ngx_http_brotli_filter_module
133+ elif [ "$HTTP_GZIP" = YES ]; then
133134 next=ngx_http_gzip_filter_module
134135 elif echo $HTTP_FILTER_MODULES | grep pagespeed_etag_filter >/dev/null; then
135136 next=ngx_pagespeed_etag_filter
Original file line number Diff line number Diff line change @@ -107,5 +107,7 @@ ngx_module_type=HTTP
107107ngx_module_name=ngx_http_zstd_static_module
108108ngx_module_incs="$ngx_zstd_opt_I"
109109ngx_module_srcs=$HTTP_ZSTD_SRCS
110+ ngx_module_order="ngx_http_brotli_static_module \
111+ $ngx_module_name"
110112
111113. auto/module
You can’t perform that action at this time.
0 commit comments