feat(heimdall): setup ntfy-sh service.

This commit is contained in:
CronyAkatsuki 2025-05-04 16:12:40 +02:00
parent c856d7579d
commit be539374c0
2 changed files with 29 additions and 0 deletions

View File

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

View File

@ -0,0 +1,28 @@
{...}: {
services.ntfy-sh = {
enable = true;
settings = {
base-url = "https://ntfy.cronyakatsuki.xyz";
listen-http = "127.0.0.1:2586";
behind-proxy = true;
auth-default-access = "deny-all";
};
};
services.traefik.dynamicConfigOptions.http = {
services.ntfy-sh.loadBalancer.servers = [
{
url = "http://localhost:3001";
}
];
routers.ntfy-sh = {
rule = "Host(`ntfy.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "ntfy-sh";
entrypoints = "websecure";
};
};
}