Fixed ModsecuritySnippet condition
This commit is contained in:
parent
b86c2199ed
commit
3d1f847871
1 changed files with 1 additions and 3 deletions
|
@ -153,9 +153,7 @@ http {
|
||||||
modsecurity_rules '
|
modsecurity_rules '
|
||||||
{{ $all.Cfg.ModsecuritySnippet }}
|
{{ $all.Cfg.ModsecuritySnippet }}
|
||||||
';
|
';
|
||||||
{{ end }}
|
{{ else }}
|
||||||
|
|
||||||
{{ if (empty $all.Cfg.ModsecuritySnippet) }}
|
|
||||||
modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf;
|
modsecurity_rules_file /etc/nginx/modsecurity/modsecurity.conf;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue