feat(heimdall): setup uptime-kuma service.
This commit is contained in:
parent
3a0f504534
commit
c856d7579d
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
5
modules/servers/heimdall/default.nix
Normal file
5
modules/servers/heimdall/default.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
./uptime-kuma.nix
|
||||||
|
];
|
||||||
|
}
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user