feat(web): enable uptime-kuma

This commit is contained in:
514fpv 2024-03-18 11:09:56 +08:00
parent 6707ee74fd
commit a906baa322
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 20 additions and 0 deletions

View file

@ -25,6 +25,15 @@
globalRedirect = "514fpv.one";
enableACME = true;
};
"uptime.514fpv.one" = {
locations."/" = {
proxyPass = "http://127.0.0.1:4000";
proxyWebsockets = true;
};
forceSSL = true;
enableACME = true;
};
};
};

11
spec/web/uptime.nix Normal file
View file

@ -0,0 +1,11 @@
{
services.uptime-kuma = {
enable = true;
settings.HOST = "127.0.0.1";
settings.PORT = "4000";
};
environment.persistence."/nix/persist/fhs".directories = [
"/var/lib/private/uptime-kuma"
];
}