feat(lambda): init stateless uptime-kuma

This commit is contained in:
Luj 2024-11-02 02:09:27 +01:00
parent 06fe1c0cb2
commit a78b000356
Signed by: luj
GPG key ID: 6FC74C847011FD83
6 changed files with 76 additions and 28 deletions

View file

@ -10,6 +10,7 @@
./hardware.nix
./home-julien.nix
./arkheon.nix
./uptime-kuma.nix
];
machine.meta = {
@ -41,14 +42,6 @@
luj.nginx.enable = true;
services.uptime-kuma = {
enable = true;
package = pkgs.unstable.uptime-kuma;
settings = {
NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt";
};
};
services.ntfy-sh = {
enable = true;
package = pkgs.unstable.ntfy-sh;
@ -62,26 +55,6 @@
};
};
services.nginx.virtualHosts."status.julienmalka.me" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3001";
proxyWebsockets = true;
};
};
security.acme.certs."uptime.luj".server = "https://ca.luj/acme/acme/directory";
services.nginx.virtualHosts."uptime.luj" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3001";
proxyWebsockets = true;
};
};
services.nginx.virtualHosts."notifications.julienmalka.me" = {
forceSSL = true;
enableACME = true;