forked from DGNum/infrastructure
26 lines
428 B
Nix
26 lines
428 B
Nix
_:
|
|
|
|
let host = "push.dgnum.eu";
|
|
|
|
in {
|
|
services.ntfy-sh = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
base-url = "https://${host}";
|
|
enable-login = true;
|
|
behind-proxy = true;
|
|
manager-interval = "1h";
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts.${host} = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:2586";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
}
|