Skip to content

Commit

Permalink
Disable Modsecurity from internal processing which affects large ingr…
Browse files Browse the repository at this point in the history
…esses (#10316)

* Disable Modsecurity from interanl processing

* Fix modsecurity check logic
  • Loading branch information
markhley committed Aug 14, 2023
1 parent 6b05e9b commit 8a578c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,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";

Expand Down

0 comments on commit 8a578c9

Please sign in to comment.