Add basic ntfy conf

This commit is contained in:
Vili Sinervä 2024-09-06 20:44:38 +03:00
parent c2c31454d6
commit f8655e5440
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -1 +1,19 @@
{ config, pkgs, ... }: { }
{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [
80
443
];
networking.firewall.allowedUDPPorts = [ 443 ];
services.ntfy = {
enable = true;
settings = {
base-url = "https://ntfy.vsinerva.fi";
listen-https = ":443";
key-file = "/var/lib/ntfy/privkey.pem";
cert-file = "/var/lib/ntfy/fullchain.pem";
cache-file = "/var/lib/ntfy/notif-cache.sqlite";
};
};
}