Add status page

This commit is contained in:
Paul-Henri Froidmont 2022-12-02 06:36:45 +01:00
parent d296d42251
commit aeb18fa58c
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 34 additions and 0 deletions

View file

@ -97,6 +97,24 @@
};
};
services.uptime-kuma = {
enable = true;
settings = {
PORT = "3001";
};
};
services.nginx.virtualHosts."uptime.froidmont.org" = {
serverAliases = [ "status.${config.networking.domain}" ];
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${config.services.uptime-kuma.settings.PORT}";
proxyWebsockets = true;
};
};
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
networking.firewall.allowedUDPPorts = [ 64738 ];
networking.firewall.interfaces."eth1".allowedTCPPorts = [ config.services.prometheus.exporters.node.port 9000 ];