Compare commits

...
This repository has been archived on 2023-06-25. You can view files and clone it, but cannot push or open issues or pull requests.

17 Commits

Author SHA1 Message Date
fba5c805ab
nginquic : closing note 2023-06-25 17:42:59 +07:00
d7b296e808 Merge branch 'main' of https://waii.ch/p-p/minoplhy/nginquic into modsecurity_incl 2023-06-25 17:01:20 +07:00
0660d6d429 Merge remote-tracking branch 'origin/main' into ModSecurity_incl 2023-03-04 01:52:47 +07:00
3cb87b14b6 Merge remote-tracking branch 'origin/main' into ModSecurity_incl 2023-03-04 01:25:43 +07:00
d263e8d1ec Merge remote-tracking branch 'origin/main' into ModSecurity_incl 2023-03-04 01:20:37 +07:00
e0e532e4f7 Merge remote-tracking branch 'origin/main' into ModSecurity_incl 2023-03-04 01:04:16 +07:00
07a631d09a
build.sh : fix unchecked merge mistake 2023-03-04 00:16:59 +07:00
c33b5f286e Merge remote-tracking branch 'origin/main' into ModSecurity_incl 2023-03-03 23:49:33 +07:00
f35c9b3773
packages.sh : forgot -y in apt 2022-12-12 16:50:38 +07:00
f394914c82
status : correct build date 2022-11-30 14:02:41 +07:00
269357377c
status : passing 2022-11-30 14:01:00 +07:00
2d21c004c8 Merge branch 'ModSecurity_incl' of https://github.com/minoplhy/nginquic into ModSecurity_incl 2022-11-29 23:08:06 +07:00
74f5de07fe
Status : Passing 2022-11-13 12:58:57 +07:00
d3affd7f4d
nginquic : Link Correct Branch 2022-11-12 19:36:42 +07:00
4ae4d063d0
README : match the branch 2022-11-12 19:19:44 +07:00
ed476b7812
modules.conf : Import ModSecurity-nginx 2022-11-12 19:17:57 +07:00
decf85f4c6
nginquic : add ModSecurity 2022-11-12 19:14:45 +07:00
6 changed files with 23 additions and 6 deletions

View File

@ -1,4 +1,5 @@
## Status : Deprecated, QUIC branch is closed and merged to main Nginx repository. also, the script is no longer working. Because of the changes. ## Status : Deprecated, QUIC branch is closed and merged to main Nginx repository. also, the script is no longer working. Because of the changes.
Btw, Future maintainance of the script will continue here: [https://github.com/minoplhy/scriptbox/tree/main/nginx_build_script](https://github.com/minoplhy/scriptbox/tree/main/nginx_build_script). Though the main purpose is for personal usage, this might not suit you well.
# Note to Self : # Note to Self :
This Script is using to build nginx with quic and some modules i'm currently using . This Script is using to build nginx with quic and some modules i'm currently using .
@ -10,7 +11,7 @@ OS : Debian
```shell ```shell
export Nginx_Install=yes # This variable is required if you want Nginx to be installed scriptibly (on Debian-based systems). export 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/main/build.sh > ~/nginquic.sh curl https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/build.sh > ~/nginquic.sh
bash ~/nginquic.sh bash ~/nginquic.sh
``` ```

View File

@ -2,7 +2,7 @@
cd ~/ cd ~/
rm -rf nginquic rm -rf nginquic
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/packages.sh | bash curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/packages.sh | bash
mkdir nginquic && cd nginquic mkdir nginquic && cd nginquic
# Install Golang # Install Golang
@ -17,16 +17,28 @@ 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 .. && 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 cd nginx-quic
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.sh | bash && cd .. 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/main/configure.sh | bash && make curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/configure.sh | bash && make
if [[ $Nginx_Install == "yes" ]]; then if [[ $Nginx_Install == "yes" ]]; 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/main/modules.conf > modules.conf curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/ModSecurity_incl/modules.conf > modules.conf
cp modules.conf /etc/nginx/modules-enabled cp modules.conf /etc/nginx/modules-enabled
else else
echo "Nginx_Install variable isn't set/vaild. 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"

View File

@ -47,6 +47,7 @@
--add-dynamic-module=mosc/ngx_cache_purge \ --add-dynamic-module=mosc/ngx_cache_purge \
--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 \
--with-http_v3_module \ --with-http_v3_module \
--with-stream_quic_module \ --with-stream_quic_module \
--with-http_geoip_module \ --with-http_geoip_module \

View File

@ -3,3 +3,4 @@ load_module /lib/nginx/modules/ngx_http_cache_purge_module.so;
load_module /lib/nginx/modules/ngx_http_dav_ext_module.so; 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;

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/sto/ngx_http_auth_pam_module
git clone https://github.com/arut/nginx-dav-ext-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/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 libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev libgeoip-dev git g++ -y sudo apt-get install mercurial libunwind-dev libpcre3 libpcre3-dev zlib1g-dev cmake make libxslt1-dev libgd-dev libssl-dev libperl-dev libpam0g-dev libgeoip-dev git g++ -y
sudo apt-get install apt-utils autoconf automake build-essential libcurl4-openssl-dev liblmdb-dev libpcre++-dev libtool libxml2-dev libyajl-dev pkgconf wget -y