infrastructure/machines/rescue01/uptime-kuma.nix

27 lines
418 B
Nix
Raw Normal View History

2024-03-28 16:25:29 +01:00
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
];
}