diff options
| author | adikro <adikro@disroot.org> | 2026-06-17 00:28:00 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-06-17 00:28:00 +0200 |
| commit | 630da5d0639cada53e26a03f579df0a7bac3b17a (patch) | |
| tree | 73edd6ea30331d807413d548f9559d89acc38a82 /os/srv/uptime-kuma.nix | |
| parent | ce7fb7ddd3267291a8d692cc6381dad606288aa5 (diff) | |
librewolf manual compilation issue
Diffstat (limited to 'os/srv/uptime-kuma.nix')
| -rw-r--r-- | os/srv/uptime-kuma.nix | 41 |
1 files changed, 41 insertions, 0 deletions
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; + }; + }; + }; + }; +} |
