fix stuff
This commit is contained in:
@@ -50,12 +50,10 @@ in {
|
|||||||
NEXTCLOUD_DATA_DIR = "/var/www/html/data";
|
NEXTCLOUD_DATA_DIR = "/var/www/html/data";
|
||||||
};
|
};
|
||||||
extraLabels = {
|
extraLabels = {
|
||||||
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = "sts_headers,${containerCfg.subdomain}-caldav";
|
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = "hsts-headers@docker,${containerCfg.subdomain}-caldav";
|
||||||
"traefik.http.middlewares.${containerCfg.subdomain}-caldav.redirectregex.permanent" = "true";
|
"traefik.http.middlewares.${containerCfg.subdomain}-caldav.redirectregex.permanent" = "true";
|
||||||
"traefik.http.middlewares.${containerCfg.subdomain}-caldav.redirectregex.regex" = "https://(.*)/.well-known/(?:card|cal)dav";
|
"traefik.http.middlewares.${containerCfg.subdomain}-caldav.redirectregex.regex" = "https://(.*)/.well-known/(?:card|cal)dav";
|
||||||
"traefik.http.middlewares.${containerCfg.subdomain}-caldav.redirectregex.replacement" = "https://$1/remote.php/dav";
|
"traefik.http.middlewares.${containerCfg.subdomain}-caldav.redirectregex.replacement" = "https://$1/remote.php/dav";
|
||||||
"traefik.http.middlewares.sts_headers.headers.stsSeconds" = "15552000";
|
|
||||||
"traefik.http.middlewares.sts_headers.headers.stsIncludeSubdomains" = "true";
|
|
||||||
};
|
};
|
||||||
overrides = {
|
overrides = {
|
||||||
ports = if containerCfg.port!=null then [ "${toString containerCfg.port}:80" ] else [];
|
ports = if containerCfg.port!=null then [ "${toString containerCfg.port}:80" ] else [];
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ in {
|
|||||||
"traefik.http.routers.${containerCfg.subdomain}.priority" = "10";
|
"traefik.http.routers.${containerCfg.subdomain}.priority" = "10";
|
||||||
"traefik.http.routers.${containerCfg.subdomain}.service" = "api@internal";
|
"traefik.http.routers.${containerCfg.subdomain}.service" = "api@internal";
|
||||||
|
|
||||||
|
|
||||||
|
"traefik.http.middlewares.hsts-headers.headers.stsSeconds" = "15552000";
|
||||||
|
"traefik.http.middlewares.hsts-headers.headers.stsIncludeSubdomains" = "true";
|
||||||
|
"traefik.http.middlewares.hsts-headers.headers.stsPreload" = "true";
|
||||||
|
"traefik.http.middlewares.hsts-headers.headers.forceSTSHeader" = "true";
|
||||||
|
|
||||||
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = if serverCfg.containers?authentik then "authentik" else "";
|
"traefik.http.routers.${containerCfg.subdomain}.middlewares" = if serverCfg.containers?authentik then "authentik" else "";
|
||||||
} // (if serverCfg.containers?authentik then {
|
} // (if serverCfg.containers?authentik then {
|
||||||
"traefik.http.middlewares.authentik.forwardauth.maxResponseBodySize" = "10485760";
|
"traefik.http.middlewares.authentik.forwardauth.maxResponseBodySize" = "10485760";
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ let
|
|||||||
lib.mapAttrs' (cName: cCfg: lib.nameValuePair "${appName}-${cName}" cCfg) app.runtime.containers
|
lib.mapAttrs' (cName: cCfg: lib.nameValuePair "${appName}-${cName}" cCfg) app.runtime.containers
|
||||||
) loadedContainers;
|
) loadedContainers;
|
||||||
allPathConfigs =
|
allPathConfigs =
|
||||||
(lib.mapAttrsToList (_: cfg: cfg) serverCfg.path)
|
(lib.mapAttrsToList (_: cfg: cfg) (lib.filterAttrs (name: _: name != "config") serverCfg.path))
|
||||||
++ concatRuntimeLists "paths";
|
++ concatRuntimeLists "paths";
|
||||||
allSetupConfigs = map (app: ({ name = app.name; envFile = ""; } // app.runtime.setup)) appsList;
|
allSetupConfigs = map (app: ({ name = app.name; envFile = ""; } // app.runtime.setup)) appsList;
|
||||||
allCronsConfigs = concatRuntimeLists "cron";
|
allCronsConfigs = concatRuntimeLists "cron";
|
||||||
|
|||||||
Reference in New Issue
Block a user