mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
27 lines
546 B
Nix
27 lines
546 B
Nix
|
|
{
|
||
|
|
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";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|