This commit is contained in:
soraefir
2026-05-09 09:55:30 +02:00
parent dda8409329
commit 8b75968f11
2 changed files with 10 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ let
environmentFiles = if secret!=null then [ config.sops.secrets."${lib.toUpper secret}".path ] else [];
environment = {} // extraEnv;
labels = if subdomain!=null then ({
labels = (if subdomain!=null then ({
"traefik.enable" = "true";
"traefik.http.routers.${subdomain}.entrypoints" = "web-secure";
"traefik.http.routers.${subdomain}.rule" = "Host(`${subdomain}.${serverCfg.hostDomain}`)";
@@ -21,7 +21,7 @@ let
"traefik.http.services.${subdomain}.loadbalancer.server.port" = toString port;
}) else {
"traefik.enable" = "false";
} // extraLabels;
}) // extraLabels;
extraOptions = extraOptions ++ [
"--add-host=host.containers.internal:host-gateway"