feat(bomba): add actual

This commit is contained in:
2026-07-11 11:11:04 +02:00
parent d297da3ea7
commit f958e451f1
4 changed files with 15 additions and 23 deletions
+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
services.actual = {
enable = true;
settings = {
port = 8015;
};
};
}
+4 -1
View File
@@ -8,7 +8,7 @@
services.caddy =
let
basicAuth = ''
basicauth {
basic_auth {
${currentSystemUser} $2a$14$L6SBwu.0FhGBYwH2LWa6uOrBSeRHo8Lo95Vkle/g5uB7kZl7nmJPO
}
'';
@@ -77,6 +77,9 @@
"yamtrack.patrickcanal.it".extraConfig = ''
reverse_proxy :8014
'';
"actual.patrickcanal.it".extraConfig = ''
reverse_proxy :${toString config.services.actual.settings.port}
'';
};
};
+1
View File
@@ -12,6 +12,7 @@
./vaultwarden.nix
./vikunja.nix
./yamtrack.nix
./actual.nix
];
services.openssh.enable = true;
+1 -22
View File
@@ -1,4 +1,4 @@
{ lib, ... }:
{ ... }:
{
services.fail2ban = {
enable = true;
@@ -9,26 +9,5 @@
multipliers = "1 2 4 8 16 32 64";
overalljails = true;
};
jails = {
caddy-filter.settings = {
enabled = true;
port = "http,https";
action = "iptables-multiport";
filter = "caddy-filter";
logpath = "/var/log/caddy/*.log";
maxretry = 8;
backend = "auto";
};
};
};
environment.etc = {
"fail2ban/filter.d/caddy-filter.local".text = lib.mkDefault (
lib.mkAfter ''
[Definition]
failregex = ^\{"level":"info","ts":\d+\.\d+,"logger":"http\.log\.access\.log\d*","msg":"handled request".*"remote_ip":"<HOST>".*"status":4\d{2}.*
ignoreregex =
''
);
};
}