feat(heimdall): setup uptime-kuma service.

This commit is contained in:
CronyAkatsuki 2025-05-04 13:14:05 +02:00
parent 3a0f504534
commit c856d7579d
5 changed files with 32 additions and 2 deletions

View File

@ -158,6 +158,7 @@
agenix.nixosModules.default agenix.nixosModules.default
./hosts/heimdall/configuration.nix ./hosts/heimdall/configuration.nix
./modules/servers/general ./modules/servers/general
./modules/servers/heimdall
]; ];
}; };

View File

@ -2,8 +2,8 @@
services.traefik = { services.traefik = {
enable = true; enable = true;
staticConfigOptions = { staticConfigOptions = {
log = {level = "WARN";}; log = {level = "DEBUG";};
certifiedResolvers = { certificatesResolvers = {
porkbun = { porkbun = {
acme = { acme = {
email = "crony@cronyakatsuki.xyz"; email = "crony@cronyakatsuki.xyz";

View File

@ -0,0 +1,5 @@
{...}: {
imports = [
./uptime-kuma.nix
];
}

View File

@ -0,0 +1,24 @@
{...}: {
services.uptime-kuma = {
enable = true;
settings = {
HOST = "127.0.0.1";
};
};
services.traefik.dynamicConfigOptions.http = {
services.uptime-kuma.loadBalancer.servers = [
{
url = "http://localhost:3001";
}
];
routers.uptime-kuma = {
rule = "Host(`uptime.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "uptime-kuma";
entrypoints = "websecure";
};
};
}

Binary file not shown.