feat(rescue01): deploy uptime-kuma
All checks were successful
build configuration / build_vault01 (push) Successful in 1m10s
build configuration / build_web02 (push) Successful in 1m11s
build configuration / build_storage01 (push) Successful in 1m13s
build configuration / build_compute01 (push) Successful in 1m22s
lint / check (push) Successful in 23s
build configuration / build_web01 (push) Successful in 1m38s
build configuration / build_rescue01 (push) Successful in 1m41s

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