From 040c5a03bb71a2517df5ced4132e6abcf981d7c5 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 ee7ec807e..0a031442c 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -710,7 +710,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 }}