Merge pull request #4080 from MRoci/master
Load modsecurity config with OWASP core rules
This commit is contained in:
commit
182b28260c
1 changed files with 2 additions and 2 deletions
|
@ -1104,14 +1104,14 @@ stream {
|
|||
{{ if (or $location.ModSecurity.Enable $all.Cfg.EnableModsecurity) }}
|
||||
modsecurity on;
|
||||
|
||||
modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf;
|
||||
|
||||
{{ if $location.ModSecurity.Snippet }}
|
||||
modsecurity_rules '
|
||||
{{ $location.ModSecurity.Snippet }}
|
||||
';
|
||||
{{ else if (or $location.ModSecurity.OWASPRules $all.Cfg.EnableOWASPCoreRules) }}
|
||||
modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf;
|
||||
{{ else }}
|
||||
modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf;
|
||||
{{ end }}
|
||||
|
||||
{{ if (not (empty $location.ModSecurity.TransactionID)) }}
|
||||
|
|
Loading…
Reference in a new issue