Merge remote-tracking branch 'origin/main' into ModSecurity_incl

This commit is contained in:
minoplhy 2023-03-03 23:49:33 +07:00
commit c33b5f286e

View File

@ -28,11 +28,23 @@ sudo make install
cd .. cd ..
cd nginx-quic cd nginx-quic
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/modules.sh | bash && cd .. 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/ModSecurity_incl/configure.sh | bash && make curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/configure.sh | bash && make
read -p "Would you like to Install Nginx Scriptly? (y/n)?" choice
case "$choice" in
y|Y ) Nginx_Install_ANS="install";;
n|N ) Nginx_Install_ANS="no";;
* ) Nginx_Install_ANS="abort";;
esac
if [[ $Nginx_Install_ANS == "install" ]]; then
mkdir /lib/nginx/ && mkdir /lib/nginx/modules mkdir /lib/nginx/ && mkdir /lib/nginx/modules
cd objs && cp *.so /lib/nginx/modules cd objs && cp *.so /lib/nginx/modules
rm /usr/sbin/nginx rm /usr/sbin/nginx
cp nginx /usr/sbin/nginx cp nginx /usr/sbin/nginx
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/modules.conf > modules.conf curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.conf > modules.conf
cp modules.conf /etc/nginx/modules-enabled cp modules.conf /etc/nginx/modules-enabled
else
echo "Nginx Installation Abort. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
fi