Merge pull request #25 from Ma27/media-root-cfg-fix
module: fix media root config
This commit is contained in:
commit
1942bdac27
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