Skip fail2ban ERROR if nginx log does not exist at boot

This commit is contained in:
Théo Barnouin 2024-10-13 18:11:53 +02:00
parent f1361665e0
commit 7d969f0c99

View file

@ -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 =
''; '';