wip
This commit is contained in:
@@ -13,6 +13,9 @@ let
|
||||
};
|
||||
};
|
||||
};
|
||||
routerName = if subpath != null
|
||||
then "${subdomain}-${lib.strings.sanitizeDerivationName subpath}"
|
||||
else subdomain;
|
||||
in {
|
||||
paths = [{
|
||||
path = "${serverCfg.dataPath}/transmission/complete";
|
||||
@@ -41,8 +44,12 @@ in {
|
||||
WHITELIST = "";# 127.0.0.1,::1,10.*";
|
||||
# HOST_WHITELIST = "traefik-server,authentik-server,authentik-worker";
|
||||
};
|
||||
extraLabels = { } // (if serverCfg.containers ? authentik then {
|
||||
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = "authentik";
|
||||
extraLabels = {
|
||||
"traefik.http.routers.${routerName}.middlewares" = "transmission-rewrite";
|
||||
"traefik.http.middlewares.transmission-rewrite.replacepathregex.regex=^/p2p(.*)"
|
||||
"traefik.http.middlewares.transmission-rewrite.replacepathregex.replacement=/transmission/web$$1"
|
||||
} // (if serverCfg.containers ? authentik then {
|
||||
"traefik.http.routers.${routerName}.middlewares" = "authentik,transmission-rewrite";
|
||||
} else {});
|
||||
|
||||
overrides = {
|
||||
|
||||
Reference in New Issue
Block a user