2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2023-10-22 22:31:06 +02:00
|
|
|
{ config, ... }:
|
2023-10-22 20:51:18 +02:00
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
let
|
|
|
|
host = "push.dgnum.eu";
|
2024-10-12 19:30:36 +02:00
|
|
|
port = 2586;
|
2024-02-02 10:51:31 +01:00
|
|
|
in
|
|
|
|
{
|
2023-10-22 20:51:18 +02:00
|
|
|
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;
|
2023-10-22 20:51:18 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-12 19:30:36 +02:00
|
|
|
dgn-web.simpleProxies.ntfy-sh = {
|
|
|
|
inherit host port;
|
|
|
|
proxyWebsockets = true;
|
2023-10-22 20:51:18 +02:00
|
|
|
};
|
2023-10-22 22:31:06 +02:00
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
systemd.services.ntfy-sh.serviceConfig.EnvironmentFile = [
|
|
|
|
config.age.secrets."ntfy_sh-environment_file".path
|
|
|
|
];
|
2023-10-22 20:51:18 +02:00
|
|
|
}
|