diff --git a/modules/server/containers/apps/authentik.nix b/modules/server/containers/apps/authentik.nix index acd8c54..1755ead 100644 --- a/modules/server/containers/apps/authentik.nix +++ b/modules/server/containers/apps/authentik.nix @@ -7,18 +7,18 @@ let logoSvgFileName = builtins.baseNameOf (toString mediaCfg.logo.svg); logoIcoFileName = builtins.baseNameOf (toString mediaCfg.logo.ico); backgroundFileName = builtins.baseNameOf (toString authentikBackground); - logoSvgMount = "/media/custom/${logoSvgFileName}"; - logoIcoMount = "/media/custom/${logoIcoFileName}"; - backgroundMount = "/media/custom/${backgroundFileName}"; + logoSvgMount = "/data/media/public/branding/${logoSvgFileName}"; + logoIcoMount = "/data/media/public/branding/${logoIcoFileName}"; + backgroundMount = "/data/media/public/branding/${backgroundFileName}"; authentikData = builder.mkData { name = "authentik"; dir = "authentik"; vars = { AUTHENTIK_DOMAIN = "${containerCfg.subdomain}.${serverCfg.domain}"; COOKIE_DOMAIN = "${serverCfg.domain}"; AUTHENTIK_LDAP_DC_DOMAIN = "dc=ldap," + (lib.concatMapStringsSep "," (x: "dc=${x}") (lib.splitString "." serverCfg.domain)); AUTHENTIK_BRANDING_TITLE = if containerCfg.extra ? name then containerCfg.extra.name else "authentik"; - AUTHENTIK_BRANDING_LOGO = "custom/${logoSvgFileName}"; - AUTHENTIK_BRANDING_FAVICON = "custom/${logoIcoFileName}"; - AUTHENTIK_BRANDING_BACKGROUND = "custom/${backgroundFileName}"; + AUTHENTIK_BRANDING_LOGO = "branding/${logoSvgFileName}"; + AUTHENTIK_BRANDING_FAVICON = "branding/${logoIcoFileName}"; + AUTHENTIK_BRANDING_BACKGROUND = "branding/${backgroundFileName}"; } // (if serverCfg.containers?jellyfin then { JELLYFIN_DOMAIN = "${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}";} else {}) // (if serverCfg.containers?gitea then { GITEA_DOMAIN = "${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}";} else {})