❄️ Dotfiles for our NixOS system configuration.

fix(services:fail2ban): fix caddy logpath

Chloe 78818d39 06713bdf

Changed files
+3 -3
services
fail2ban
+3 -3
services/fail2ban/default.nix
···
# Jails for protecting various services
jails = {
-
# SSH protection - monitor failed login attempts
+
# SSH protection - monitor failed login attempts using systemd journal
sshd.settings = {
enabled = true;
port = "ssh";
···
enabled = true;
port = "http,https";
filter = "caddy-http";
-
logpath = "/var/log/caddy/access.log";
+
logpath = "/var/log/caddy/access-*.log";
backend = "auto";
maxretry = 10;
findtime = "600";
···
enabled = true;
port = "http,https";
filter = "caddy-ratelimit";
-
logpath = "/var/log/caddy/access.log";
+
logpath = "/var/log/caddy/access-*.log";
backend = "auto";
maxretry = 50;
findtime = "60";