This commit is contained in:
Hadi 2024-06-20 11:42:57 +02:00
parent 81e72e574d
commit f9bd98bc58

View File

@ -5,13 +5,12 @@ let
port = 8082; port = 8082;
url = "https://" + hostname; url = "https://" + hostname;
in { in {
environment.etc."ntfy-sh/auth" = { text = ""; };
services.ntfy-sh = { services.ntfy-sh = {
enable = true; enable = true;
settings = { settings = {
base-url = url; base-url = url;
listen-http = "127.0.0.1:${toString port}"; listen-http = "127.0.0.1:${toString port}";
auth-file = "/etc/ntfy-sh/authfile"; auth-file = "/var/lib/ntfy-sh/user.db";
auth-default-access = "deny-all"; auth-default-access = "deny-all";
behind-proxy = true; behind-proxy = true;
}; };