freun-dev: add uptime kuma

This commit is contained in:
Joakim Repomaa
2025-02-17 14:48:38 +02:00
parent da0fab832c
commit 18c93e224a
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{ lib, config, ... }:
let
cfg = config.services.uptime-kuma;
fqdn = "${cfg.subdomain}.${config.networking.domain}";
in
{
options.services.uptime-kuma = {
subdomain = lib.mkOption {
type = lib.types.str;
};
};
config = lib.mkIf cfg.enable {
services.webserver.vHosts.${fqdn}.locations."/".proxyPort = lib.toInt cfg.settings.PORT;
};
}