feat: add fail2ban and scrutiny

This commit is contained in:
Nickolaj Jepsen 2026-01-20 23:41:10 +01:00
parent 4e8afa2dfc
commit d45f6a9359
6 changed files with 107 additions and 6 deletions

View file

@ -0,0 +1,26 @@
{
config,
lib,
...
}:
lib.mkIf config.fireproof.homelab.enable {
services.restic.backups.homelab.paths = ["/var/lib/scrutiny"];
services.scrutiny = {
enable = true;
collector.enable = true;
settings = {
web.listen.port = 8089;
};
};
services.oauth2-proxy.nginx.virtualHosts."scrutiny.nickolaj.com".allowed_groups = ["admin"];
services.nginx.virtualHosts."scrutiny.nickolaj.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8089";
};
};
}