feat(heimdall): setup uptime-kuma service.
This commit is contained in:
parent
3a0f504534
commit
c856d7579d
5 changed files with 32 additions and 2 deletions
24
modules/servers/heimdall/uptime-kuma.nix
Normal file
24
modules/servers/heimdall/uptime-kuma.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue