From e645e857288f16aabb38e2f723030b93acdbef58 Mon Sep 17 00:00:00 2001 From: mley Date: Thu, 10 Aug 2023 11:07:36 -0700 Subject: [PATCH] Fix modsecurity check logic --- rootfs/etc/nginx/template/nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index 9d1a21a3c..0d313816c 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -711,7 +711,7 @@ http { # default server, used for NGINX healthcheck and access to nginx stats server { # Ensure that modsecurity will not run on an internal location as this is not accessible from outside - {{ if $modsecurityEnabled }} + {{ if $all.Cfg.EnableModsecurity }} modsecurity off; {{ end }}