- extraServices.maintenance.enable + notify.url https://ping.az-gruppe.com (Q7) - Selbstanmeldung (Q3) in allen 16 Router-Modulen, 18 Einträge: traefik-routing.nix bündelt prtg/home-assistant/azdesk - Bewusst unregistriert (Policy): r.l (Traefik-Dashboard), loki-push - error-pages-Verkabelung der Router bleibt Ticket 05 (AZ-NIX-9m4)
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{config, ...}: let
|
|
serviceName = "stirling-pdf";
|
|
servicePort = config.m3ta.ports.get serviceName;
|
|
in {
|
|
virtualisation.oci-containers.containers."${serviceName}" = {
|
|
image = "docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest-fat";
|
|
ports = ["127.0.0.1:${toString servicePort}:8080"];
|
|
environment = {
|
|
SECURITY_ENABLELOGIN = "False";
|
|
DISABLE_ADDITIONAL_FEATURES = "False";
|
|
};
|
|
|
|
volumes = [
|
|
"stirling_pdf_data:/usr/share/tessdata"
|
|
"stirling_pdf_configs:/configs"
|
|
];
|
|
extraOptions = ["--ip=10.89.0.13" "--network=web"];
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
services.${serviceName}.loadBalancer.servers = [{url = "http://localhost:${toString servicePort}/";}];
|
|
|
|
routers.${serviceName} = {
|
|
rule = "Host(`pdf.l.az-gruppe.com`)";
|
|
tls = {certResolver = "ionos";};
|
|
service = serviceName;
|
|
entrypoints = "websecure";
|
|
};
|
|
};
|
|
|
|
# Wartungsmodus: Selbstanmeldung des Dienstes (Q3).
|
|
m3ta.maintenance.services.pdf = {
|
|
domains = ["pdf.l.az-gruppe.com"];
|
|
desc = "Stirling-PDF (PDF-Werkzeuge)";
|
|
};
|
|
}
|