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:
Maximilian Bosch 2024-06-02 17:10:01 +02:00
parent e9ae3992d5
commit d4c45b01f2
No known key found for this signature in database
2 changed files with 11 additions and 3 deletions

View file

@ -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"