diff --git a/install b/install index 105715f..caddd99 100644 --- a/install +++ b/install @@ -1,4 +1,5 @@ #!/bin/bash +export NGINX="1.21.6" case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in focal) if [ "$(whoami)" != "root" ] @@ -56,10 +57,11 @@ case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in cd /opt/mod/ModSecurity && ./configure && make -j`nproc` && make install # Nginx - cd /opt/ && wget https://nginx.org/download/nginx-1.21.6.tar.gz && tar xf nginx-1.21.6.tar.gz && rm -Rf nginx-1.21.6.tar.gz - cd /opt/nginx-1.21.6 && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/builder > builder; bash builder - cd /opt/nginx-1.21.6 && make -j`nproc` - cd /opt/nginx-1.21.6 && make install + cd /opt/ && wget https://nginx.org/download/nginx-${NGINX}.tar.gz && tar xf nginx-${NGINX}.tar.gz && rm -Rf nginx-${NGINX}.tar.gz + cd /opt/nginx-${NGINX} && curl -s https://raw.githubusercontent.com/hakasenyang/openssl-patch/master/nginx_hpack_push_1.15.3.patch > hpack_push.patch && patch -p1 hpack_push.patch + cd /opt/nginx-${NGINX} && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/builder > builder; bash builder + cd /opt/nginx-${NGINX} && make -j`nproc` + cd /opt/nginx-${NGINX} && make install curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.service.Focal > /lib/systemd/system/nginx.service rm -Rf /nginx/*.default @@ -80,6 +82,8 @@ case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_pagespeed.so cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_stream_geoip2_module.so cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_stream_js_module.so + cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_php8-0.so + cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_php8-1.so # Fixes mkdir -p /nginx/modsec diff --git a/static/builder b/static/builder index 1536c31..1af71f0 100644 --- a/static/builder +++ b/static/builder @@ -33,4 +33,5 @@ LUAJIT_LIB="/usr/local/LuaJIT/lib" LUAJIT_INC="/usr/local/LuaJIT/include/luajit- --with-stream_ssl_module \ --with-stream_realip_module \ --with-stream_geoip_module \ +--with-http_v2_hpack_enc \ --with-ld-opt="-Wl,-rpath,/usr/local/LuaJIT/lib" diff --git a/static/mod/ngx_php8-0.so b/static/mod/ngx_php8-0.so new file mode 100644 index 0000000..8fc9757 Binary files /dev/null and b/static/mod/ngx_php8-0.so differ diff --git a/static/mod/ngx_php8-1.so b/static/mod/ngx_php8-1.so new file mode 100644 index 0000000..02cd6d3 Binary files /dev/null and b/static/mod/ngx_php8-1.so differ