+it-tools

This commit is contained in:
2025-10-15 07:48:10 +02:00
parent 1bede8a9d6
commit 84bf4e5397
5 changed files with 48 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
./containers
./gitea.nix
./it-tools.nix
./metabase.nix
./n8n.nix
./ntfy.nix

View File

@@ -0,0 +1,45 @@
{
config,
lib,
pkgs,
...
}: let
serviceName = "it-tools";
portUtils = import ../../../lib/port-utils.nix {inherit lib;};
servicePort = portUtils.getPort serviceName "AZ-CLD-1";
in {
services.nginx = {
enable = true;
virtualHosts.${serviceName} = {
listen = [
{
addr = "127.0.0.1";
port = servicePort;
}
];
locations."/" = {
root = "${pkgs.it-tools}/lib";
index = "index.html";
tryFiles = "$uri $uri/ /index.html";
};
};
};
# Traefik configuration
services.traefik.dynamicConfigOptions.http = {
services.${serviceName}.loadBalancer.servers = [
{
url = "http://localhost:${toString servicePort}/";
}
];
routers.${serviceName} = {
rule = "Host(`tools.az-gruppe.com`)";
tls = {
certResolver = "ionos";
};
service = serviceName;
entrypoints = "websecure";
};
};
}