From 56d5f7387cf2cb016e5c2581a5de9ed2fd8b7888 Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Thu, 12 Dec 2024 16:27:06 -0300 Subject: [PATCH] fix: use dynamic module instead Signed-off-by: Felipe Zipitria --- nginx/Dockerfile | 2 +- nginx/Dockerfile-alpine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 75f520f..0580bf4 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -61,7 +61,7 @@ RUN set -eux; \ curl -sSL https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -o nginx-${NGINX_VERSION}.tar.gz; \ tar -xzf nginx-${NGINX_VERSION}.tar.gz; \ cd ./nginx-${NGINX_VERSION}; \ - ./configure --with-compat --add-dynamic-module=../ModSecurity-nginx --add-module=../headers-more-nginx-module; \ + ./configure --with-compat --add-dynamic-module=../ModSecurity-nginx --add-dynamic-module=../headers-more-nginx-module; \ make modules; \ strip objs/ngx_http_modsecurity_module.so objs/ngx_http_headers_more_filter_module.so; \ cp objs/ngx_http_modsecurity_module.so objs/ngx_http_headers_more_filter_module.so /etc/nginx/modules/; \ diff --git a/nginx/Dockerfile-alpine b/nginx/Dockerfile-alpine index 491aa87..6247ca3 100644 --- a/nginx/Dockerfile-alpine +++ b/nginx/Dockerfile-alpine @@ -58,7 +58,7 @@ RUN set -eux; \ curl -sSL https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -o nginx-${NGINX_VERSION}.tar.gz; \ tar -xzf nginx-${NGINX_VERSION}.tar.gz; \ cd ./nginx-${NGINX_VERSION}; \ - ./configure --with-compat --add-dynamic-module=../ModSecurity-nginx --add-module=../headers-more-nginx-module; \ + ./configure --with-compat --add-dynamic-module=../ModSecurity-nginx --add-dynamic-module=../headers-more-nginx-module; \ make modules; \ strip objs/ngx_http_modsecurity_module.so objs/ngx_http_headers_more_filter_module.so; \ cp objs/ngx_http_modsecurity_module.so objs/ngx_http_headers_more_filter_module.so /etc/nginx/modules/; \