dots/modules/nixos/features/ntfy-sh.nix
2026-01-15 00:54:19 +11:00

23 lines
477 B
Nix

let
port = 5002;
certloc = "/var/lib/acme/fi33.buzz";
in
{
services = {
ntfy-sh = {
enable = true;
settings = {
base-url = "https://ntfy-sh.fi33.buzz";
listen-http = ":${toString port}";
behind-proxy = true;
};
};
caddy.virtualHosts."ntfy-sh.fi33.buzz".extraConfig = ''
reverse_proxy localhost:${toString port}
tls ${certloc}/cert.pem ${certloc}/key.pem {
protocols tls1.3
}
'';
};
}