defiant: add uptime-kuma, rename metrics->monitoring

This commit is contained in:
2024-03-10 15:06:33 +01:00
parent 028c3ccbe0
commit 1eed30d7d5
11 changed files with 22 additions and 4 deletions

View File

@@ -6,5 +6,6 @@
./grafana.nix
./loki.nix
./snmp-exporter.nix
./uptime-kuma.nix
];
}

View File

@@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
let
cfg = config.services.uptime-kuma;
in {
services.uptime-kuma = {
enable = true;
settings = {
PORT = "5059";
HOST = "127.0.1.2";
};
};
services.nginx.virtualHosts."uptime.home.feal.no" = {
locations."/".proxyPass = "http://${cfg.settings.HOST}:${cfg.settings.PORT}";
};
}