From 68b3c121f49b6b4857b604b7cc63967dc1da6e2d Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Thu, 17 Oct 2024 17:24:57 +0500 Subject: [PATCH] fix: add PROFILE_IMAGE_BACKEND settings for k8s - Add PROFILE_IMAGE_BACKEND settings in minio so that profile images persist in k8s deployment of openedx. --- changelog.d/20241010_170607_faraz.maqsood.md | 1 + tutorminio/patches/openedx-lms-common-settings | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 changelog.d/20241010_170607_faraz.maqsood.md create mode 100644 tutorminio/patches/openedx-lms-common-settings diff --git a/changelog.d/20241010_170607_faraz.maqsood.md b/changelog.d/20241010_170607_faraz.maqsood.md new file mode 100644 index 0000000..e06d879 --- /dev/null +++ b/changelog.d/20241010_170607_faraz.maqsood.md @@ -0,0 +1 @@ +- [BugFix] Add PROFILE_IMAGE_BACKEND settings in minio so that profile images persist in k8s deployment of openedx. (by @Faraz32123) diff --git a/tutorminio/patches/openedx-lms-common-settings b/tutorminio/patches/openedx-lms-common-settings new file mode 100644 index 0000000..819cb79 --- /dev/null +++ b/tutorminio/patches/openedx-lms-common-settings @@ -0,0 +1,9 @@ +# LMS-specific media storage +PROFILE_IMAGE_BACKEND = { + "class": "{{ DEFAULT_FILE_STORAGE }}", + "options": { + "bucket_name": "{{ MINIO_BUCKET_NAME }}", + "querystring_auth": False, + "location": PROFILE_IMAGE_BACKEND["options"]["location"].lstrip("/"), + }, +}