Merge pull request #25 from Ma27/media-root-cfg-fix

module: fix media root config
This commit is contained in:
WilliButz 2024-06-07 13:19:13 +02:00 committed by GitHub
commit 1942bdac27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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"