This commit is contained in:
soraefir
2026-06-02 19:07:30 +02:00
parent 495b210e9a
commit 50a1092fcf

View File

@@ -2,7 +2,10 @@
let
version = "latest";
serverCfg = config.syscfg.server;
routerName = if containerCfg.subpath != null
then "${containerCfg.subdomain}-${lib.strings.sanitizeDerivationName containerCfg.subpath}"
else containerCfg.subdomain;
in {
sops = false;
db = false;
@@ -80,7 +83,7 @@ in {
extraLabels = {
} // (if serverCfg.containers ? authentik then {
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = "authentik";
"traefik.http.routers.${routerName}.middlewares" = "authentik";
} else {});
overrides = {
volumes = [ ];