Skip fail2ban ERROR if nginx log does not exist at boot
This commit is contained in:
parent
f1361665e0
commit
7d969f0c99
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ in
|
||||||
enabled = true
|
enabled = true
|
||||||
port = http,https
|
port = http,https
|
||||||
logpath = /var/log/nginx/*.log
|
logpath = /var/log/nginx/*.log
|
||||||
|
skip_if_nologs = true
|
||||||
backend = polling
|
backend = polling
|
||||||
journalmatch =
|
journalmatch =
|
||||||
'';
|
'';
|
||||||
|
@ -25,6 +26,7 @@ in
|
||||||
enabled = true
|
enabled = true
|
||||||
port = http,https
|
port = http,https
|
||||||
logpath = /var/log/nginx/*.log
|
logpath = /var/log/nginx/*.log
|
||||||
|
skip_if_nologs = true
|
||||||
backend = polling
|
backend = polling
|
||||||
journalmatch =
|
journalmatch =
|
||||||
'';
|
'';
|
||||||
|
@ -32,6 +34,7 @@ in
|
||||||
enabled = true
|
enabled = true
|
||||||
port = http,https
|
port = http,https
|
||||||
logpath = /var/log/nginx/*.log
|
logpath = /var/log/nginx/*.log
|
||||||
|
skip_if_nologs = true
|
||||||
backend = polling
|
backend = polling
|
||||||
journalmatch =
|
journalmatch =
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue