nginquic : add ModSecurity

This commit is contained in:
unknown 2022-11-12 19:14:45 +07:00
parent 7fc986919b
commit decf85f4c6
Signed by: minoplhy
GPG Key ID: 90667A59A9908AEC
4 changed files with 17 additions and 2 deletions

View File

@ -3,10 +3,22 @@ rm -rf nginquic
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/packages.sh | bash
mkdir nginquic && cd nginquic
hg clone -b quic https://hg.nginx.org/nginx-quic
git clone https://github.com/google/boringssl
git clone --depth=1 https://github.com/google/boringssl
cd boringssl
mkdir build && cd build && cmake .. && make
cd .. && cd ..
# ModSecurity Part
git clone --depth=1 https://github.com/SpiderLabs/ModSecurity
cd ModSecurity/
git submodule init
git submodule update
./build.sh
./configure
make
sudo make install
cd ..
cd nginx-quic
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.sh | bash && cd ..
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/configure.sh | bash && make

View File

@ -47,6 +47,7 @@
--add-dynamic-module=mosc/ngx_cache_purge \
--add-dynamic-module=mosc/nginx-dav-ext-module \
--add-dynamic-module=mosc/echo-nginx-module \
--add-dynamic-module=mosc/ModSecurity-nginx \
--with-http_v3_module \
--with-stream_quic_module \
--with-http_geoip_module \

View File

@ -2,4 +2,5 @@ git clone https://github.com/openresty/headers-more-nginx-module
git clone https://github.com/sto/ngx_http_auth_pam_module
git clone https://github.com/arut/nginx-dav-ext-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

View File

@ -1 +1,2 @@
sudo apt-get install mercurial golang libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev libgeoip-dev git -y
sudo apt-get install g++ apt-utils autoconf automake build-essential libcurl4-openssl-dev liblmdb-dev libpcre++-dev libtool libxml2-dev libyajl-dev pkgconf wget