Skip to content

Commit

Permalink
fix: add PROFILE_IMAGE_BACKEND settings for k8s
Browse files Browse the repository at this point in the history
- Add PROFILE_IMAGE_BACKEND settings in tutor-minio using patch named
`openedx-lms-production-settings` so that profile images persist
in k8s deployment of openedx and profile images can work now for both
local(will use minio storage if minio plugin is enabled) and dev environment.
- In case of dev environment, backend expects the valid S3 `base_url`
key in the PROFILE_IMAGE_BACKEND settings. It will be using openedx `DEFAULT_FILE_STORAGE`.
  • Loading branch information
Muhammad Faraz Maqsood authored and Faraz32123 committed Oct 31, 2024
1 parent 40abeca commit 163f955
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/20241010_170607_faraz.maqsood.md
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions tutorminio/patches/openedx-lms-production-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PROFILE_IMAGE_BACKEND = {
"class": DEFAULT_FILE_STORAGE,
"options": {
"bucket_name": "{{ MINIO_BUCKET_NAME }}",
"querystring_auth": False,
"location": PROFILE_IMAGE_BACKEND["options"]["location"].lstrip("/"),
},
}

0 comments on commit 163f955

Please sign in to comment.