mirror of
https://github.com/pvlnes/homelab.git
synced 2026-04-05 18:01:45 +00:00
upd nixos conf
This commit is contained in:
parent
b5256d79fa
commit
b624d64116
@ -87,6 +87,16 @@
|
|||||||
findtime = 10m
|
findtime = 10m
|
||||||
maxretry = 5
|
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).*$
|
failregex = ^.*"remote_ip":"<HOST>".*"host":"vault\.sesur\.dev".*"uri":"\/identity\/connect\/token".*"status":(400|401).*$
|
||||||
ignoreregex =
|
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.
|
# Disable suspend of my homelab. Added when my server every ~15 minutes suspend.
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user