Fix modsecurity check logic

This commit is contained in:
mley 2023-08-10 11:07:36 -07:00 committed by k8s-infra-cherrypick-robot
parent ff3c608a5b
commit e645e85728

View file

@ -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 }}