fix mark
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
let
|
let
|
||||||
version = "latest";
|
version = "latest";
|
||||||
serverCfg = config.syscfg.server;
|
serverCfg = config.syscfg.server;
|
||||||
|
|
||||||
|
routerName = if containerCfg.subpath != null
|
||||||
|
then "${containerCfg.subdomain}-${lib.strings.sanitizeDerivationName containerCfg.subpath}"
|
||||||
|
else containerCfg.subdomain;
|
||||||
in {
|
in {
|
||||||
sops = false;
|
sops = false;
|
||||||
db = false;
|
db = false;
|
||||||
@@ -80,7 +83,7 @@ in {
|
|||||||
|
|
||||||
extraLabels = {
|
extraLabels = {
|
||||||
} // (if serverCfg.containers ? authentik then {
|
} // (if serverCfg.containers ? authentik then {
|
||||||
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = "authentik";
|
"traefik.http.routers.${routerName}.middlewares" = "authentik";
|
||||||
} else {});
|
} else {});
|
||||||
overrides = {
|
overrides = {
|
||||||
volumes = [ ];
|
volumes = [ ];
|
||||||
|
|||||||
Reference in New Issue
Block a user