infrastructure/machines/rescue01/uptime-kuma.nix
2024-03-28 16:25:29 +01:00

26 lines
418 B
Nix

let
host = "status.dgnum.eu";
port = 3001;
in
{
services.uptime-kuma.enable = true;
services.nginx = {
enable = true;
virtualHosts.${host} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
proxyWebsockets = true;
};
};
};
networking.firewall.allowedTCPPorts = [
80
443
];
}