Ildkule: Move monitoring state directories to data volume

This commit is contained in:
2024-11-09 15:21:12 +01:00
parent 815f48c30d
commit 11f6ef0572
4 changed files with 23 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
let
cfg = config.services.uptime-kuma;
domain = "status.pvv.ntnu.no";
stateDir = "/data/monitoring/uptime-kuma";
in {
services.uptime-kuma = {
enable = true;
@@ -17,4 +18,9 @@ in {
kTLS = true;
locations."/".proxyPass = "http://${cfg.settings.HOST}:${cfg.settings.PORT}";
};
fileSystems."/var/lib/uptime-kuma" = {
device = stateDir;
options = [ "bind" ];
};
}