feat(rescue01): deploy uptime-kuma

This commit is contained in:
sinavir 2024-03-28 16:25:29 +01:00
parent 747d8c08cb
commit fdd4f4b443
3 changed files with 29 additions and 0 deletions

View file

@ -8,6 +8,7 @@ lib.extra.mkConfig {
enabledServices = [
# List of services to enable
"uptime-kuma"
];
extraConfig = {

View file

@ -0,0 +1,26 @@
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
];
}

View file

@ -44,6 +44,8 @@ let
"telegraf" # Telegraf
];
rescue01 = [ "status" ];
storage01 = [
"cachix" # Attic
"git" # Forgejo