nginx_build_script : lurking around with ngx_brotli
This commit is contained in:
parent
4aa162b7ad
commit
7481b64d8f
@ -48,6 +48,7 @@
|
|||||||
--add-dynamic-module=mosc/nginx-dav-ext-module \
|
--add-dynamic-module=mosc/nginx-dav-ext-module \
|
||||||
--add-dynamic-module=mosc/echo-nginx-module \
|
--add-dynamic-module=mosc/echo-nginx-module \
|
||||||
--add-dynamic-module=mosc/ModSecurity-nginx \
|
--add-dynamic-module=mosc/ModSecurity-nginx \
|
||||||
|
--add-dynamic-module=mosc/ngx_brotli \
|
||||||
--with-http_v3_module \
|
--with-http_v3_module \
|
||||||
--with-http_geoip_module \
|
--with-http_geoip_module \
|
||||||
--with-stream_geoip_module
|
--with-stream_geoip_module
|
@ -4,5 +4,7 @@ load_module /lib/nginx/modules/ngx_http_dav_ext_module.so;
|
|||||||
load_module /lib/nginx/modules/ngx_http_echo_module.so;
|
load_module /lib/nginx/modules/ngx_http_echo_module.so;
|
||||||
load_module /lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
load_module /lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
||||||
load_module /lib/nginx/modules/ngx_http_modsecurity_module.so;
|
load_module /lib/nginx/modules/ngx_http_modsecurity_module.so;
|
||||||
|
load_module /lib/nginx/modules/ngx_http_brotli_filter_module.so;
|
||||||
|
load_module /lib/nginx/modules/ngx_http_brotli_static_module.so;
|
||||||
# load_module /lib/nginx/modules/ndk_http_module.so;
|
# load_module /lib/nginx/modules/ndk_http_module.so;
|
||||||
# load_module /lib/nginx/modules/ngx_http_lua_module.so;
|
# load_module /lib/nginx/modules/ngx_http_lua_module.so;
|
@ -6,3 +6,13 @@ git clone https://github.com/nginx-modules/ngx_cache_purge
|
|||||||
git clone https://github.com/SpiderLabs/ModSecurity-nginx
|
git clone https://github.com/SpiderLabs/ModSecurity-nginx
|
||||||
# git clone https://github.com/openresty/lua-nginx-module
|
# git clone https://github.com/openresty/lua-nginx-module
|
||||||
# git clone https://github.com/vision5/ngx_devel_kit
|
# git clone https://github.com/vision5/ngx_devel_kit
|
||||||
|
|
||||||
|
# Lurking with ngx_brotli
|
||||||
|
# The step will be a lot diffirent from another modules, as it a requirement from upstream repository. Not ME!
|
||||||
|
|
||||||
|
git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli
|
||||||
|
cd ngx_brotli/deps/brotli
|
||||||
|
mkdir out && cd out
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed ..
|
||||||
|
cmake --build . --config Release --target brotlienc
|
||||||
|
cd ../../../..
|
Loading…
Reference in New Issue
Block a user