diff --git a/Dockerfile b/Dockerfile index 3ad934d..cee7004 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,6 @@ RUN set -eux; \ : RUN dpkg-divert --divert /bin/systemctl.real --rename --add /bin/systemctl; ln -snf /usr/bin/fake-systemctl /bin/systemctl RUN 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 > /opt/nginx-${NGINX}/hpack_push.patch; cd /opt/nginx-${NGINX}; patch -p1 < /opt/nginx-${NGINX}/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; useradd nginx && usermod -s /bin/false nginx -RUN mkdir -p /nginx/modules; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ndk_http_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_brotli_filter_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_brotli_static_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_flv_live_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_geoip2_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_headers_more_filter_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_js_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_lua_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_modsecurity_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_naxsi_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_set_misc_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_testcookie_access_module.so; 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; mkdir -p /nginx/modsec; curl -s https://raw.githubusercontent.com/nbs-system/naxsi/master/naxsi_config/naxsi_core.rules > /nginx/modsec/naxi.core; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/l7.conf > /nginx/modsec/l7.conf; curl -s https://raw.githubusercontent.com/SpiderLabs/ModSecurity/v3/master/modsecurity.conf-recommended > /nginx/modsec/modsecurity.conf; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/tester.conf > /nginx/modsec/tester.conf; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/unicode.mapping > /nginx/modsec/unicode.mapping; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.conf > /nginx/nginx.conf; mkdir -p /nginx/live/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/default > /nginx/live/default; mkdir -p /hostdata/default/public_html/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/index.html > /hostdata/default/public_html/index.html; mkdir -p /hostdata/default/public_html/cdn/modsec && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/aes.min.js > /hostdata/default/public_html/cdn/modsec/aes.min.js +RUN mkdir -p /nginx/modules; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ndk_http_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_brotli_filter_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_brotli_static_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_flv_live_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_geoip2_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_headers_more_filter_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_js_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_lua_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_modsecurity_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_naxsi_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_set_misc_module.so; cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ngx_http_testcookie_access_module.so; 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; mkdir -p /nginx/modsec; curl -s https://raw.githubusercontent.com/nbs-system/naxsi/master/naxsi_config/naxsi_core.rules > /nginx/modsec/naxi.core; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/l7.conf > /nginx/modsec/l7.conf; curl -s https://raw.githubusercontent.com/SpiderLabs/ModSecurity/v3/master/modsecurity.conf-recommended > /nginx/modsec/modsecurity.conf; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/tester.conf > /nginx/modsec/tester.conf; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/unicode.mapping > /nginx/modsec/unicode.mapping; curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.conf > /nginx/nginx.conf; mkdir -p /nginx/live/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/default > /nginx/live/default; mkdir -p /hostdata/default/public_html/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/index.html > /hostdata/default/public_html/index.html; mkdir -p /hostdata/default/public_html/cdn/modsec && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/aes.min.js > /hostdata/default/public_html/cdn/modsec/aes.min.js RUN curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/docker/supervisord.conf > /etc/supervisor/supervisord.conf CMD ["/usr/bin/supervisord","-c", "/etc/supervisor/supervisord.conf"] diff --git a/static/builder b/static/builder index 1af71f0..877dfd2 100644 --- a/static/builder +++ b/static/builder @@ -7,6 +7,8 @@ LUAJIT_LIB="/usr/local/LuaJIT/lib" LUAJIT_INC="/usr/local/LuaJIT/include/luajit- --lock-path=/var/run/nginx.lock \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ +--with-pcre \ +--without-pcre2 \ --with-threads \ --with-file-aio \ --with-http_ssl_module \ diff --git a/static/mod/ndk_http_module.so b/static/mod/ndk_http_module.so index f22179c..3332694 100755 Binary files a/static/mod/ndk_http_module.so and b/static/mod/ndk_http_module.so differ diff --git a/static/mod/ngx_http_brotli_filter_module.so b/static/mod/ngx_http_brotli_filter_module.so index a1cf1f8..fd1a370 100755 Binary files a/static/mod/ngx_http_brotli_filter_module.so and b/static/mod/ngx_http_brotli_filter_module.so differ diff --git a/static/mod/ngx_http_brotli_static_module.so b/static/mod/ngx_http_brotli_static_module.so index 2661687..38ad802 100755 Binary files a/static/mod/ngx_http_brotli_static_module.so and b/static/mod/ngx_http_brotli_static_module.so differ diff --git a/static/mod/ngx_http_flv_live_module.so b/static/mod/ngx_http_flv_live_module.so index ac607e6..cbf5fca 100755 Binary files a/static/mod/ngx_http_flv_live_module.so and b/static/mod/ngx_http_flv_live_module.so differ diff --git a/static/mod/ngx_http_geoip2_module.so b/static/mod/ngx_http_geoip2_module.so index 2ce6bcf..f9eb9b8 100755 Binary files a/static/mod/ngx_http_geoip2_module.so and b/static/mod/ngx_http_geoip2_module.so differ diff --git a/static/mod/ngx_http_headers_more_filter_module.so b/static/mod/ngx_http_headers_more_filter_module.so index 76bbfd2..1921a2e 100755 Binary files a/static/mod/ngx_http_headers_more_filter_module.so and b/static/mod/ngx_http_headers_more_filter_module.so differ diff --git a/static/mod/ngx_http_js_module.so b/static/mod/ngx_http_js_module.so index 41f7d13..c475e0c 100755 Binary files a/static/mod/ngx_http_js_module.so and b/static/mod/ngx_http_js_module.so differ diff --git a/static/mod/ngx_http_lua_module.so b/static/mod/ngx_http_lua_module.so index 8b928fc..577cbee 100755 Binary files a/static/mod/ngx_http_lua_module.so and b/static/mod/ngx_http_lua_module.so differ diff --git a/static/mod/ngx_http_modsecurity_module.so b/static/mod/ngx_http_modsecurity_module.so index 997ead4..a056c33 100755 Binary files a/static/mod/ngx_http_modsecurity_module.so and b/static/mod/ngx_http_modsecurity_module.so differ diff --git a/static/mod/ngx_http_naxsi_module.so b/static/mod/ngx_http_naxsi_module.so index ea9c966..b9a8fc0 100755 Binary files a/static/mod/ngx_http_naxsi_module.so and b/static/mod/ngx_http_naxsi_module.so differ diff --git a/static/mod/ngx_http_set_misc_module.so b/static/mod/ngx_http_set_misc_module.so index fb6c859..e362a35 100755 Binary files a/static/mod/ngx_http_set_misc_module.so and b/static/mod/ngx_http_set_misc_module.so differ diff --git a/static/mod/ngx_http_testcookie_access_module.so b/static/mod/ngx_http_testcookie_access_module.so index 124ee68..579812b 100755 Binary files a/static/mod/ngx_http_testcookie_access_module.so and b/static/mod/ngx_http_testcookie_access_module.so differ diff --git a/static/mod/ngx_pagespeed.so b/static/mod/ngx_pagespeed.so index a9e2544..54a6f40 100755 Binary files a/static/mod/ngx_pagespeed.so and b/static/mod/ngx_pagespeed.so differ diff --git a/static/mod/ngx_stream_geoip2_module.so b/static/mod/ngx_stream_geoip2_module.so index ebf1547..4e94923 100755 Binary files a/static/mod/ngx_stream_geoip2_module.so and b/static/mod/ngx_stream_geoip2_module.so differ diff --git a/static/mod/ngx_stream_js_module.so b/static/mod/ngx_stream_js_module.so index 7a420d4..e539476 100755 Binary files a/static/mod/ngx_stream_js_module.so and b/static/mod/ngx_stream_js_module.so differ