Skip to content

Commit

Permalink
Merge pull request #92 from codebymikey/patch-1
Browse files Browse the repository at this point in the history
Modsecurity config support for all Drupal-based presets.
  • Loading branch information
csandanov committed Aug 5, 2024
2 parents 37a5204 + 7d12a9c commit 1958766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/includes/modsecurity.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Include /etc/nginx/modsecurity/recommended.conf
Include /etc/nginx/modsecurity/crs/setup.conf
{{- end }}

{{- if or (eq (getenv "NGINX_VHOST_PRESET") "drupal11") (eq (getenv "NGINX_VHOST_PRESET") "drupal10") (eq (getenv "NGINX_VHOST_PRESET") "drupal9") (eq (getenv "NGINX_VHOST_PRESET") "drupal8") (eq (getenv "NGINX_VHOST_PRESET") "drupal7") (eq (getenv "NGINX_VHOST_PRESET") "drupal6") }}
{{/* Pick up all Drupal-based presets that start with 'drupal'. */}}
{{- if eq (printf "%.6s" (getenv "NGINX_VHOST_PRESET")) "drupal" }}
SecAction \
"id:900130,\
phase:1,\
Expand Down

0 comments on commit 1958766

Please sign in to comment.