fix configure arguments and CRS include

This commit is contained in:
bunkerity
2021-06-20 21:51:57 +02:00
parent b0f93fb840
commit bbb5134a39
3 changed files with 31 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ SecAuditLog /var/log/nginx/modsec_audit.log
# include OWASP CRS configuration
{% if USE_MODSECURITY_CRS == "yes" %}
include /opt/owasp/crs.conf
include /opt/bunkerized-nginx/crs-setup.conf
# custom CRS configurations before loading rules (exclusions)
{% if is_custom_conf("/modsec-crs-confs") %}
@@ -66,7 +66,7 @@ include /modsec-crs-confs/{{ FIRST_SERVER }}/*.conf
{% endif %}
# include OWASP CRS rules
include /opt/owasp/crs/*.conf
include /opt/bunkerized-nginx/crs/*.conf
{% endif %}
# custom rules after loading the CRS