modules: services: indexers: add prowlarr fail2ban

This commit is contained in:
Bruno BELANYI 2023-09-03 12:21:04 +02:00
parent ce46f3571b
commit adc4ce9d8a

View file

@ -60,6 +60,22 @@ in
port = prowlarrPort;
}
];
services.fail2ban.jails = {
prowlarr = ''
enabled = true
filter = prowlarr
action = iptables-allports
'';
};
environment.etc = {
"fail2ban/filter.d/prowlarr.conf".text = ''
[Definition]
failregex = ^.*\|Warn\|Auth\|Auth-Failure ip <HOST> username .*$
journalmatch = _SYSTEMD_UNIT=prowlarr.service
'';
};
})
];
}