Fix fail2ban install without Nginx

This commit is contained in:
VirtuBox
2020-08-07 15:39:46 +02:00
parent dcb0b8f4f7
commit d30a5d7226
3 changed files with 24 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ ignoreip = 127.0.0.1/8 ::1
[recidive]
enabled = true
[nginx-http-auth]
{{#nginx}}[nginx-http-auth]
enabled = true
logpath = /var/log/nginx/*error*.log
@@ -23,4 +23,4 @@ maxretry = 5
enabled = true
filter = nginx-forbidden
action = iptables-multiport[name="nginx-forbidden", port="http,https"]
logpath = /var/log/nginx/*error*.log
logpath = /var/log/nginx/*error*.log{{/nginx}}