From dd5b81e9cec9a32f7122abd38424e095223ce602 Mon Sep 17 00:00:00 2001 From: Zoey Date: Fri, 26 Apr 2024 23:12:42 +0200 Subject: [PATCH] move to freenginx Signed-off-by: Zoey --- Dockerfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5269be7..536f73d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,17 +43,17 @@ RUN git clone --recursive https://github.com/owasp-modsecurity/ModSecurity --bra make -j "$(nproc)" install && \ strip -s /usr/local/modsecurity/lib/libmodsecurity.so.3 # Nginx -RUN wget -q https://nginx.org/download/nginx-"$NGINX_VER".tar.gz -O - | tar xzC /src && \ - mv /src/nginx-"$NGINX_VER" /src/nginx && \ - wget -q https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master/nginx__dynamic_tls_records_"$DTR_VER"%2B.patch -O /src/nginx/1.patch && \ - wget -q https://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-"$RCP_VER"-resolver_conf_parsing.patch -O /src/nginx/2.patch && \ - sed -i "s|nginx/|NPMplus/|g" /src/nginx/src/core/nginx.h && \ - sed -i "s|Server: nginx|Server: NPMplus|g" /src/nginx/src/http/ngx_http_header_filter_module.c && \ - sed -i "s|
nginx
|
NPMplus
|g" /src/nginx/src/http/ngx_http_special_response.c && \ - cd /src/nginx && \ - patch -p1
freenginx
|
NPMplus
|g" /src/freenginx/src/http/ngx_http_special_response.c && \ + cd /src/freenginx && \ + patch -p1