diff --git a/Dockerfile b/Dockerfile index c33133d..57ba4d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM bfren/nginx:nginx1.24-alpine3.18-5.0.13 +FROM bfren/nginx:nginx1.24-alpine3.18-5.0.14 LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-proxy" diff --git a/VERSION b/VERSION index 4122521..73a86b1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.0.0 \ No newline at end of file +7.0.1 \ No newline at end of file diff --git a/overlay/etc/bf/init.d/23-naxsi b/overlay/etc/bf/init.d/23-naxsi index acb1cd7..1c40f96 100644 --- a/overlay/etc/bf/init.d/23-naxsi +++ b/overlay/etc/bf/init.d/23-naxsi @@ -8,6 +8,14 @@ export BF_E=`basename ${0}` # Generate NAXSI configuration. #====================================================================================================================== -bf-echo "Generating NAXSI files." -bf-esh ${BF_TEMPLATES}/naxsi.conf.esh /etc/nginx/helpers/naxsi.conf -bf-done +if [ "${PROXY_ENABLE_NAXSI-}" = "1" ] ; then + + bf-echo "Generating NAXSI files." + bf-esh ${BF_TEMPLATES}/naxsi.conf.esh /etc/nginx/helpers/naxsi.conf + bf-done + +else + + bf-echo "NAXSI not enabled." + +fi