nginquic/build.sh

30 lines
1.0 KiB
Bash
Raw Normal View History

2022-06-11 13:09:10 +00:00
cd ~/
rm -rf nginquic
2022-11-12 12:36:42 +00:00
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/packages.sh | bash
2022-06-11 13:09:10 +00:00
mkdir nginquic && cd nginquic
hg clone -b quic https://hg.nginx.org/nginx-quic
2022-11-12 12:14:45 +00:00
git clone --depth=1 https://github.com/google/boringssl
2022-06-11 13:09:10 +00:00
cd boringssl
mkdir build && cd build && cmake .. && make
cd .. && cd ..
2022-11-12 12:14:45 +00:00
# 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 ..
2022-06-11 13:09:10 +00:00
cd nginx-quic
2022-11-12 12:36:42 +00:00
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/modules.sh | bash && cd ..
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/configure.sh | bash && make
2022-06-11 13:09:10 +00:00
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
cd objs && cp *.so /lib/nginx/modules
rm /usr/sbin/nginx
cp nginx /usr/sbin/nginx
2022-11-12 12:36:42 +00:00
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/modules.conf > modules.conf
2022-06-11 13:09:10 +00:00
cp modules.conf /etc/nginx/modules-enabled