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

This commit is contained in:
minoplhy 2023-03-04 01:20:37 +07:00
commit d263e8d1ec
2 changed files with 3 additions and 9 deletions

View File

@ -8,6 +8,7 @@ This Script is using to build nginx with quic and some modules i'm currently usi
OS : Debian
```shell
Nginx_Install=yes # This variable is required if you want Nginx to be installed scriptibly (on Debian-based systems).
curl https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/build.sh | sudo bash
```

View File

@ -33,14 +33,7 @@ cd nginx-quic
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
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
if [[ $Nginx_Install == "yes" ]]; then
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
cd objs && cp *.so /lib/nginx/modules
rm /usr/sbin/nginx
@ -48,5 +41,5 @@ if [[ $Nginx_Install_ANS == "install" ]]; then
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/modules.conf > modules.conf
cp modules.conf /etc/nginx/modules-enabled
else
echo "Nginx Installation Abort. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
echo "Nginx_Install variable isn't set/vaild. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
fi