pvv-nixos-config/hosts/ildkule/services/monitoring/uptime-kuma.nix
Felix Albrigtsen f96324f5ae
Some checks failed
Eval nix flake / evals (push) Failing after 1m49s
Eval nix flake / evals (pull_request) Failing after 1m44s
ildkule: Move metrics->monitoring. Add uptime-kuma. Adjust prometheus exporters.
2024-04-21 18:46:58 +02:00

21 lines
424 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.services.uptime-kuma;
domain = "uptime.pvv.ntnu.no";
in {
services.uptime-kuma = {
enable = true;
settings = {
PORT = "5059";
HOST = "127.0.1.2";
};
};
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://${cfg.settings.HOST}:${cfg.settings.PORT}";
};
}