From 7d969f0c99ef4c503682165a6a27f56435a0be69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Barnouin?= Date: Sun, 13 Oct 2024 18:11:53 +0200 Subject: [PATCH] Skip fail2ban ERROR if nginx log does not exist at boot --- services/nginx/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/nginx/default.nix b/services/nginx/default.nix index 3867d22..40621db 100644 --- a/services/nginx/default.nix +++ b/services/nginx/default.nix @@ -18,6 +18,7 @@ in enabled = true port = http,https logpath = /var/log/nginx/*.log + skip_if_nologs = true backend = polling journalmatch = ''; @@ -25,6 +26,7 @@ in enabled = true port = http,https logpath = /var/log/nginx/*.log + skip_if_nologs = true backend = polling journalmatch = ''; @@ -32,6 +34,7 @@ in enabled = true port = http,https logpath = /var/log/nginx/*.log + skip_if_nologs = true backend = polling journalmatch = '';