nginx_build_script : Whoops! Openresty doesn't support QUIC just yet. I'll freeze lua module until they support it

This commit is contained in:
minoplhy 2023-07-20 15:33:56 +07:00
parent 7d103fe84f
commit 1e925fc36f
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
4 changed files with 22 additions and 23 deletions

View File

@ -18,11 +18,11 @@ hg clone -b default https://hg.nginx.org/nginx
git clone --depth=1 https://github.com/google/boringssl git clone --depth=1 https://github.com/google/boringssl
cd boringssl cd boringssl
mkdir build && cd build && cmake .. && make mkdir build && cd build && cmake .. && make
cd .. && cd .. cd ../..
# ModSecurity Part # ModSecurity Part
git clone --depth=1 https://github.com/SpiderLabs/ModSecurity git clone --depth=1 https://github.com/SpiderLabs/ModSecurity
cd ModSecurity/ cd ModSecurity
git submodule init git submodule init
git submodule update git submodule update
./build.sh ./build.sh
@ -31,20 +31,22 @@ make
sudo make install sudo make install
cd .. cd ..
# Whoops! Openresty doesn't support QUIC yet!
# lua-nginx-module buildup part (Big Part) # lua-nginx-module buildup part (Big Part)
mkdir nginx-lua && cd nginx-lua #
mkdir -p /opt/nginx-lua-module/ ## mkdir nginx-lua && cd nginx-lua
git clone https://github.com/openresty/lua-resty-core ## mkdir -p /opt/nginx-lua-module/
git clone https://github.com/openresty/lua-resty-lrucache ## git clone https://github.com/openresty/lua-resty-core
git clone https://github.com/openresty/luajit2 ## git clone https://github.com/openresty/lua-resty-lrucache
## git clone https://github.com/openresty/luajit2
cd luajit2 && make install PREFIX=/opt/nginx-lua-module/luajit2 && cd .. ##
cd lua-resty-core && make install PREFIX=/opt/nginx-lua-module/ && cd .. ## cd luajit2 && make install PREFIX=/opt/nginx-lua-module/luajit2 && cd ..
cd lua-resty-lrucache && make install PREFIX=/opt/nginx-lua-module/ && cd .. ## cd lua-resty-core && make install PREFIX=/opt/nginx-lua-module/ && cd ..
cd .. ## cd lua-resty-lrucache && make install PREFIX=/opt/nginx-lua-module/ && cd ..
## cd ..
export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib ##
export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1 ## export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib
## export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1
# Build Nginx # Build Nginx

View File

@ -1,8 +1,7 @@
./auto/configure \ ./auto/configure \
--with-cc-opt="-I../boringssl/include" \ --with-cc-opt="-I../boringssl/include" \
--with-ld-opt="-L../boringssl/build/ssl \ --with-ld-opt="-L../boringssl/build/ssl \
-L../boringssl/build/crypto \ -L../boringssl/build/crypto" \
-Wl,-rpath,/opt/nginx-lua-module/luajit2/lib" \
--prefix=/usr/share/nginx \ --prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \ --conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \ --http-log-path=/var/log/nginx/access.log \
@ -49,8 +48,6 @@
--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/lua-nginx-module \
--add-dynamic-module=mosc/ngx_devel_kit \
--with-http_v3_module \ --with-http_v3_module \
--with-http_geoip_module \ --with-http_geoip_module \
--with-stream_geoip_module --with-stream_geoip_module

View File

@ -4,5 +4,5 @@ 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_lua_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;

View File

@ -4,5 +4,5 @@ git clone https://github.com/arut/nginx-dav-ext-module/
git clone https://github.com/openresty/echo-nginx-module git clone https://github.com/openresty/echo-nginx-module
git clone https://github.com/nginx-modules/ngx_cache_purge 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