Merge pull request #4793 from MMeent/patch-2

Fix issue in logic of modsec template
This commit is contained in:
Kubernetes Prow Robot 2019-11-28 10:57:04 -08:00 committed by GitHub
commit 60fc37d0e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1041,7 +1041,7 @@ stream {
modsecurity_rules ' modsecurity_rules '
{{ $location.ModSecurity.Snippet }} {{ $location.ModSecurity.Snippet }}
'; ';
{{ else if (and ((not $all.Cfg.EnableOWASPCoreRules) $location.ModSecurity.OWASPRules))}} {{ else if (and (not $all.Cfg.EnableOWASPCoreRules) ($location.ModSecurity.OWASPRules))}}
modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf; modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf;
{{ end }} {{ end }}