Remove unnecessary comments
Only have the default Modsecurity conf settings in case Modsecurity configuration snippet is not present and remove unnecessary comments
This commit is contained in:
parent
f9b6e70d01
commit
bcda35ef6b
1 changed files with 2 additions and 3 deletions
|
@ -155,11 +155,10 @@ http {
|
|||
';
|
||||
{{ end }}
|
||||
|
||||
{{ if (not (empty $all.Cfg.ModsecuritySnippet)) }}
|
||||
# modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf;
|
||||
{{ else }}
|
||||
{{ if (empty $all.Cfg.ModsecuritySnippet) }}
|
||||
modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf;
|
||||
{{ end }}
|
||||
|
||||
{{ if $all.Cfg.EnableOWASPCoreRules }}
|
||||
modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf;
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue