From 45047df2ffb633c6a59c2d1c42ca11b5abe55f07 Mon Sep 17 00:00:00 2001 From: "Kyle D. McCormick" Date: Wed, 25 Oct 2023 17:34:00 -0400 Subject: [PATCH] fix(blockstore-filesystem): use CMS's MEDIA_ROOT instead of LMS's --- .../patches/openedx-cms-common-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tutor-contrib-blockstore-filesystem/blockstore_config_filesystem/patches/openedx-cms-common-settings b/plugins/tutor-contrib-blockstore-filesystem/blockstore_config_filesystem/patches/openedx-cms-common-settings index e6e6794..3067572 100644 --- a/plugins/tutor-contrib-blockstore-filesystem/blockstore_config_filesystem/patches/openedx-cms-common-settings +++ b/plugins/tutor-contrib-blockstore-filesystem/blockstore_config_filesystem/patches/openedx-cms-common-settings @@ -1 +1 @@ -BUNDLE_ASSET_STORAGE_SETTINGS = dict(STORAGE_CLASS="django.core.files.storage.FileSystemStorage", STORAGE_KWARGS=dict(location="/openedx/media/blockstore/", base_url="{{ "https" if ENABLE_HTTPS else "http" }}://{{ LMS_HOST }}/media/blockstore/")) \ No newline at end of file +BUNDLE_ASSET_STORAGE_SETTINGS = dict(STORAGE_CLASS="django.core.files.storage.FileSystemStorage", STORAGE_KWARGS=dict(location=f"{MEDIA_ROOT}blockstore/", base_url=f"{MEDIA_URL}blockstore/"))