defiant: add uptime-kuma, rename metrics->monitoring
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
./services/hedgedoc.nix
|
||||
./services/home-assistant.nix
|
||||
./services/matrix
|
||||
./services/metrics
|
||||
./services/monitoring
|
||||
./services/microbin.nix
|
||||
./services/minecraft.nix
|
||||
./services/vaultwarden.nix
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
./grafana.nix
|
||||
./loki.nix
|
||||
./snmp-exporter.nix
|
||||
./uptime-kuma.nix
|
||||
];
|
||||
}
|
||||
16
hosts/defiant/services/monitoring/uptime-kuma.nix
Normal file
16
hosts/defiant/services/monitoring/uptime-kuma.nix
Normal 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}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user