enable uptime kuma

This commit is contained in:
2024-07-28 04:31:42 +05:30
parent ff3c5b20ae
commit ed0a6742fd
2 changed files with 26 additions and 0 deletions

View File

@ -8,6 +8,7 @@
./hardware-configuration.nix
../../modules/nixos/headscale.nix
../../modules/nixos/vaultwarden.nix
../../modules/nixos/uptime-kuma.nix
];
nixpkgs = {

View File

@ -0,0 +1,25 @@
{lib, ...}: {
services = {
uptime-kuma = {
enable = true;
settings = {
DATA_DIR = "/var/lib/uptime-kuma";
};
};
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"stats.0xtux.com" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://localhost:3001";
};
};
};
};
};
};
}