This commit is contained in:
Hadi 2024-06-19 23:51:36 +02:00
parent 29905a460b
commit 325f8e9d15

View File

@ -2,8 +2,8 @@
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
let
hostname = "ntfy.anotherhadi.com";
url = "https://" + hostname;
port = 8082;
url = "https://" + hostname + ":" + port;
in {
services.ntfy-sh = {
enable = true;
@ -17,7 +17,6 @@ in {
};
services.nginx.virtualHosts.${hostname} = {
enableACME = true;
forceSSL = true;
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
};
networking.firewall.allowedTCPPorts = [ port ];