infrastructure/machines/web01/ntfy-sh.nix

30 lines
546 B
Nix
Raw Permalink Normal View History

2023-10-22 22:31:06 +02:00
{ config, ... }:
let
host = "push.dgnum.eu";
port = 2586;
in
{
services.ntfy-sh = {
enable = true;
settings = {
base-url = "https://${host}";
behind-proxy = true;
manager-interval = "1h";
2023-10-26 14:18:20 +02:00
auth-default-access = "deny-all";
enable-signup = true;
enable-login = true;
};
};
dgn-web.simpleProxies.ntfy-sh = {
inherit host port;
proxyWebsockets = true;
};
2023-10-22 22:31:06 +02:00
systemd.services.ntfy-sh.serviceConfig.EnvironmentFile = [
config.age.secrets."ntfy_sh-environment_file".path
];
}