From c8b74393393b5fa1a6ec878848df36a2c21329bb Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Sat, 28 Feb 2026 16:05:06 -0800 Subject: [PATCH] feat: add kuma for uptime management --- configuration.nix | 1 + modules/caddy.nix | 6 ++++++ modules/uptime-kuma.nix | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/uptime-kuma.nix diff --git a/configuration.nix b/configuration.nix index 6ad6d2e..c858860 100644 --- a/configuration.nix +++ b/configuration.nix @@ -10,6 +10,7 @@ ./modules/matrix.nix ./modules/monitoring.nix ./modules/ntfy.nix + ./modules/uptime-kuma.nix ./secrets/secrets-scheme.nix # Impure Secrets ./secrets/secrets.nix diff --git a/modules/caddy.nix b/modules/caddy.nix index 14e6635..a06049b 100644 --- a/modules/caddy.nix +++ b/modules/caddy.nix @@ -63,6 +63,12 @@ reverse_proxy localhost:3001 # Grafana ''; }; + + "uptime.extremist.software" = { + extraConfig = '' + reverse_proxy localhost:4001 + ''; + }; "ntfy.extremist.software" = { extraConfig = '' diff --git a/modules/uptime-kuma.nix b/modules/uptime-kuma.nix new file mode 100644 index 0000000..8ae0d6f --- /dev/null +++ b/modules/uptime-kuma.nix @@ -0,0 +1,11 @@ +{ config, pkgs, ... }: + +{ + services.uptime-kuma = { + enable = true; + settings = { + PORT = "4001"; + HOST = "127.0.0.1"; + }; + }; +}