[release-1.8] Disable Modsecurity from internal processing which affects large ingresses (#10375)

* Disable Modsecurity from interanl processing

* Fix modsecurity check logic

---------

Co-authored-by: mley <mley@intraedge.com>
This commit is contained in:
k8s-infra-cherrypick-robot 2023-09-07 12:01:23 -07:00 committed by GitHub
parent 98170bd6bf
commit fb80e6d53f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -710,6 +710,11 @@ 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 $all.Cfg.EnableModsecurity }}
modsecurity off;
{{ end }}
listen 127.0.0.1:{{ .StatusPort }};
set $proxy_upstream_name "internal";