remove uptimekuma, replace with textonly script

This commit is contained in:
Lewis Wynne 2026-04-29 15:36:31 +01:00
parent 0acd4f2d72
commit 48ec633a59
6 changed files with 217 additions and 29 deletions

View file

@ -9,13 +9,24 @@
../../modules/site.nix
./sites.nix
./fail2ban.nix
./uptime-kuma.nix
./tinyauth.nix
./shlink.nix
./guestbook.nix
./telegram-alerts.nix
../../modules/uptime
];
services.uptime = {
enable = true;
services = {
website = "https://ily.rs";
forgejo = "https://git.ily.rs";
foundry = "https://foundry.ily.rs";
wiki = "https://wiki.ily.rs";
penfield = "https://penfield.ily.rs";
};
};
networking.hostName = "lab";
services.openssh = {

View file

@ -62,6 +62,13 @@ in
reverse_proxy localhost:8123
}
@status path /status
handle @status {
root * /var/lib/uptime
rewrite * /status.txt
file_server
}
@site_file file {
try_files {path} {path}/index.html
}

View file

@ -29,7 +29,6 @@ let
"podman-dokuwiki"
"podman-shlink"
"podman-shlink-web-client"
"podman-uptime-kuma"
"podman-tinyauth"
"site-webhook"
];

View file

@ -1,27 +0,0 @@
{ ... }:
{
services.caddy.virtualHosts."status.ily.rs" = {
extraConfig = ''
reverse_proxy localhost:3001
encode zstd gzip
'';
};
services.caddy.virtualHosts."status.wynne.rs" = {
extraConfig = ''
redir https://status.ily.rs{uri} permanent
'';
};
virtualisation.oci-containers.containers.uptime-kuma = {
image = "louislam/uptime-kuma:2.2.1";
podman.user = "podman";
volumes = [
"/srv/uptime-kuma/data:/app/data"
];
ports = [ "127.0.0.1:3001:3001" ];
};
# Workaround for NixOS/nixpkgs#410857 until backport of #475089 lands
systemd.services.podman-uptime-kuma.serviceConfig.Delegate = true;
}