mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
feat: add fail2ban and scrutiny
This commit is contained in:
parent
4e8afa2dfc
commit
d45f6a9359
6 changed files with 107 additions and 6 deletions
26
modules/homelab/scrutiny.nix
Normal file
26
modules/homelab/scrutiny.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue