Former-commit-id: 154c21859d
This commit is contained in:
Hadi
2024-06-21 13:58:14 +02:00
parent f2b742e470
commit 9ab4dae87b
17 changed files with 20 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
# Push Notification Server
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
let
hostname = "ntfy.anotherhadi.com";
port = 8082;
url = "https://" + hostname;
in {
services.ntfy-sh = {
enable = true;
settings = {
base-url = url;
listen-http = "127.0.0.1:${toString port}";
behind-proxy = true;
};
};
services.nginx.virtualHosts.${hostname} = {
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
};
networking.firewall.allowedTCPPorts = [ port ];
}