From 630da5d0639cada53e26a03f579df0a7bac3b17a Mon Sep 17 00:00:00 2001 From: adikro Date: Wed, 17 Jun 2026 00:28:00 +0200 Subject: librewolf manual compilation issue --- os/srv/uptime-kuma.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 os/srv/uptime-kuma.nix (limited to 'os/srv/uptime-kuma.nix') diff --git a/os/srv/uptime-kuma.nix b/os/srv/uptime-kuma.nix new file mode 100644 index 0000000..7bf8dd0 --- /dev/null +++ b/os/srv/uptime-kuma.nix @@ -0,0 +1,41 @@ +{ + config, + lib, + masterDomain, + securityTemplates, + ... +}: +let + cfg = config.os.srv.uptime-kuma; +in +{ + options.os.srv.uptime-kuma = { + enable = lib.mkEnableOption "enables uptime-kuma"; + proxyConfig = lib.mkOption { + type = lib.types.attrs; + default = { }; + }; + }; + config = lib.mkIf cfg.enable { + services.uptime-kuma = { + enable = true; + appriseSupport = true; + settings = { + HOST = "127.0.0.1"; + UPTIME_KUMA_DB_TYPE = "sqlite"; + }; + }; + + os.srv.uptime-kuma.proxyConfig = { + "uptime-kuma.${masterDomain}" = { + enableACME = true; + forceSSL = true; + + locations."/" = { + proxyPass = "http://${config.os.core.network.ips.vm2-gateway}:3001"; + extraConfig = securityTemplates.restrictToInternal; + }; + }; + }; + }; +} -- cgit v1.3