Skip to content

Commit fb80e6d

Browse files
[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 <[email protected]>
1 parent 98170bd commit fb80e6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rootfs/etc/nginx/template/nginx.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,11 @@ http {
710710

711711
# default server, used for NGINX healthcheck and access to nginx stats
712712
server {
713+
# Ensure that modsecurity will not run on an internal location as this is not accessible from outside
714+
{{ if $all.Cfg.EnableModsecurity }}
715+
modsecurity off;
716+
{{ end }}
717+
713718
listen 127.0.0.1:{{ .StatusPort }};
714719
set $proxy_upstream_name "internal";
715720

0 commit comments

Comments
 (0)