Skip to content

Commit

Permalink
Disable Modsecurity from interanl processing
Browse files Browse the repository at this point in the history
  • Loading branch information
markhley committed Aug 9, 2023
1 parent 5d8185c commit 435ce86
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 $modsecurityEnabled }}
modsecurity off;
{{ end }}

listen 127.0.0.1:{{ .StatusPort }};
set $proxy_upstream_name "internal";

Expand Down

0 comments on commit 435ce86

Please sign in to comment.