blob: 9f97e86618a5da29fcbea664ca0cc67d5b7c66c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{config, ...}: let
ntfyDomain = "push.${config.customOps.domain.fqdn}";
listen = "127.0.0.1:2586";
in {
services.ntfy-sh = {
enable = true;
settings = {
base-url = "https://${ntfyDomain}";
behind-proxy = true;
auth-access = ["*:up*:write-only"];
listen-http = listen;
};
};
services.nginx.virtualHosts.${ntfyDomain} = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://${listen}";
};
}
|