module: fix media root config
Was changed within upstream commit abc0c2d2a2a0bfb0214798ed6bca9d59359b39f8. The sole reason this worked was that `settings.storage.media.file.path` pointed to `./media`, relative to `/var/lib/authentik`. Update our config accordingly.
This commit is contained in:
parent
e9ae3992d5
commit
d4c45b01f2
2 changed files with 11 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ index 40795d460..7ac1efb34 100644
|
|||
+from authentik.lib.config import CONFIG
|
||||
|
||||
-MEDIA_ROOT = Path(__file__).parent.parent.parent / "media"
|
||||
+MEDIA_ROOT = Path(CONFIG.get("paths.media"))
|
||||
+MEDIA_ROOT = Path(CONFIG.get("storage.media.file.path"))
|
||||
TENANT_MEDIA_ROOT = MEDIA_ROOT / "public"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue