This commit is contained in:
Hadi 2024-06-18 10:23:07 +02:00 committed by GitHub
parent 93b7145e70
commit ac6a0f59c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
let
hostname = "ntfy.anotherhadi.com";
url = "https://"+hostname;
port = 8082;
in{
services.ntfy-sh = {
enable = true;
settings = {
base-url = url;
listen-http = "${port}";
# auth-file
auth-default-access = "deny-all";
behind-proxy = true;
};
};
services.nginx.virtualHosts.${hostname} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${port}";
};
};
networking.firewall.allowedTCPPorts = [ port ];
}

View File

@ -0,0 +1,6 @@
{
services.unifi = {
enable = true;
openFirewall = true;
};
}