mirror of
https://github.com/pvlnes/homelab.git
synced 2026-06-03 17:13:49 +00:00
upd
This commit is contained in:
parent
cf1ebe484b
commit
76b0e8b7d5
@ -107,6 +107,17 @@
|
|||||||
findtime = 10m
|
findtime = 10m
|
||||||
bantime = 1h
|
bantime = 1h
|
||||||
'';
|
'';
|
||||||
|
jails.gitea = ''
|
||||||
|
enabled = true
|
||||||
|
filter = gitea
|
||||||
|
logpath = /var/log/caddy/access.log
|
||||||
|
backend = auto
|
||||||
|
port = http,https
|
||||||
|
maxretry = 5
|
||||||
|
findtime = 10m
|
||||||
|
bantime = 1h
|
||||||
|
datepattern = "ts\":Epoch"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -121,6 +132,11 @@
|
|||||||
failregex = ^.*"remote_ip":"<HOST>".*"uri":"\/api\/auth\/login".*"status":401.*$
|
failregex = ^.*"remote_ip":"<HOST>".*"uri":"\/api\/auth\/login".*"status":401.*$
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
'';
|
'';
|
||||||
|
environment.etc."fail2ban/filter.d/gitea.conf".text = ''
|
||||||
|
[Definition]
|
||||||
|
failregex = ^.*"remote_ip":"<HOST>".*"method":"POST".*"uri":"\/user\/login".*"status":200.*$
|
||||||
|
ignoreregex =
|
||||||
|
'';
|
||||||
|
|
||||||
# For VsCode
|
# For VsCode
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user