From 71ced36b83f90cd9e790f10bfb75f12a0b37de91 Mon Sep 17 00:00:00 2001 From: cy Date: Mon, 30 Dec 2024 18:28:00 -0500 Subject: [PATCH] add uptime-kuma --- hosts/titan/Caddyfile | 5 +++++ hosts/titan/default.nix | 1 + hosts/titan/uptime-kuma.nix | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 hosts/titan/uptime-kuma.nix diff --git a/hosts/titan/Caddyfile b/hosts/titan/Caddyfile index 25c6f4b..d13e7ac 100644 --- a/hosts/titan/Caddyfile +++ b/hosts/titan/Caddyfile @@ -30,3 +30,8 @@ ntfy.cything.io { import common reverse_proxy localhost:8083 } + +status.cything.io { + import common + reverse_proxy localhost:3001 +} diff --git a/hosts/titan/default.nix b/hosts/titan/default.nix index 6e23afe..1ebcfd8 100644 --- a/hosts/titan/default.nix +++ b/hosts/titan/default.nix @@ -14,6 +14,7 @@ ./hardware-configuration.nix ./ghost.nix ./ntfy.nix + ./uptime-kuma.nix ]; sops.age.keyFile = "/root/.config/sops/age/keys.txt"; diff --git a/hosts/titan/uptime-kuma.nix b/hosts/titan/uptime-kuma.nix new file mode 100644 index 0000000..7b204ec --- /dev/null +++ b/hosts/titan/uptime-kuma.nix @@ -0,0 +1,8 @@ +{...}: { + # data stored at /var/lib/uptime-kuma/ but does not expose + # an option to change it + services.uptime-kuma = { + enable = true; + settings.PORT = "3001"; + }; +}