nixos: services: servarr: autobrr: fix fail2ban
All checks were successful
ci/woodpecker/push/check Pipeline was successful

The log line for authentication failures has been updated since the
original PR.

It also happens to be logged in JSON, and I'm a bit too lazy to match it
more properly than this.
This commit is contained in:
Bruno BELANYI 2025-04-12 11:27:47 +02:00
parent a28295da27
commit a0473a5c6c

View file

@ -54,7 +54,7 @@ in
environment.etc = { environment.etc = {
"fail2ban/filter.d/autobrr.conf".text = '' "fail2ban/filter.d/autobrr.conf".text = ''
[Definition] [Definition]
failregex = ^.*Auth: invalid login \[.*\] from: <HOST>$ failregex = "message":"Auth: Failed login attempt username: \[.*\] ip: <HOST>"
journalmatch = _SYSTEMD_UNIT=autobrr.service journalmatch = _SYSTEMD_UNIT=autobrr.service
''; '';
}; };