+ portUtils +metabase

This commit is contained in:
m3tam3re
2025-09-29 15:44:25 +02:00
parent 7cf5f7d06f
commit c11847206f
18 changed files with 317 additions and 109 deletions

View File

@@ -1,28 +1,36 @@
{config, ...}: {
services.ntfy-sh = {
enable = true;
settings.base-url = "https://ping.az-gruppe.com";
settings = {
listen-http = ":3033";
auth-file = "/var/lib/ntfy-sh/user.db";
auth-default-access = "deny-all";
};
{
config,
lib,
...
}: let
serviceName = "ntfy-sh";
portUtils = import ../../../lib/port-utils.nix {inherit lib;};
servicePort = portUtils.getPort "ntfy-sh" "AZ-CLD-1";
in {
services.${serviceName} = {
enable = true;
settings = {
base-url = "https://ping.az-gruppe.com";
listen-http = ":${toString servicePort}";
auth-file = "/var/lib/ntfy-sh/user.db";
auth-default-access = "deny-all";
};
};
# Traefik configuration specific to littlelink
# Traefik configuration
services.traefik.dynamicConfigOptions.http = {
services.ntfy-sh.loadBalancer.servers = [
services.${serviceName}.loadBalancer.servers = [
{
url = "http://localhost:3033/";
url = "http://localhost:${toString servicePort}/";
}
];
routers.ntfy-sh = {
routers.${serviceName} = {
rule = "Host(`ping.az-gruppe.com`)";
tls = {
certResolver = "ionos";
};
service = "ntfy-sh";
service = serviceName;
entrypoints = "websecure";
};
};