nix-dotfiles/modules/nixos/ntfy.nix
2024-03-05 15:55:49 +01:00

16 lines
300 B
Nix

let
port = 7080;
in
{
services.ntfy-sh = {
enable = true;
settings = {
listen-http = ":${toString port}";
base-url = "https://ntfy.bertof.net";
behind-proxy = true;
auth-default-access = "deny-all";
};
};
networking.firewall.allowedTCPPorts = [ port ];
}