mirror of
https://github.com/Superredstone/nixos.git
synced 2026-08-19 11:48:57 +02:00
feat(bomba): add actual
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.actual = {
|
||||
enable = true;
|
||||
settings = {
|
||||
port = 8015;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
./vaultwarden.nix
|
||||
./vikunja.nix
|
||||
./yamtrack.nix
|
||||
./actual.nix
|
||||
];
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
@@ -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 =
|
||||
''
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user