upd nixos conf

This commit is contained in:
Pavel 2026-03-11 19:52:02 +03:00
parent b5256d79fa
commit b624d64116

View File

@ -87,6 +87,16 @@
findtime = 10m
maxretry = 5
'';
jails.immich = ''
enabled = true
filter = immich
logpath = /var/log/caddy/access.log
backend = auto
port = http,https
maxretry = 5
findtime = 10m
bantime = 1h
'';
};
@ -96,6 +106,11 @@
failregex = ^.*"remote_ip":"<HOST>".*"host":"vault\.sesur\.dev".*"uri":"\/identity\/connect\/token".*"status":(400|401).*$
ignoreregex =
'';
environment.etc."fail2ban/filter.d/immich.conf".text = ''
[Definition]
failregex = ^.*"remote_ip":"<HOST>".*"uri":"\/api\/auth\/login".*"status":401.*$
ignoreregex =
'';
# Disable suspend of my homelab. Added when my server every ~15 minutes suspend.
services.logind.settings.Login = {