diff --git a/changelog.d/20241010_170607_faraz.maqsood.md b/changelog.d/20241010_170607_faraz.maqsood.md new file mode 100644 index 0000000..8ebdb22 --- /dev/null +++ b/changelog.d/20241010_170607_faraz.maqsood.md @@ -0,0 +1 @@ +- [BugFix] Add PROFILE_IMAGE_BACKEND settings in minio using patch named `openedx-lms-production-settings` so that profile images persist in k8s deployment of openedx and profile images can work for both local and dev environment. (by @Faraz32123) diff --git a/tutorminio/patches/openedx-lms-production-settings b/tutorminio/patches/openedx-lms-production-settings new file mode 100644 index 0000000..28914e4 --- /dev/null +++ b/tutorminio/patches/openedx-lms-production-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("/"), + }, +}