From 0f370c871212729613b97241a49108d74e86689c Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Wed, 23 Oct 2024 09:23:21 +1030 Subject: [PATCH] fix: set MEILISEARCH_PUBLIC_URL specifically for dev and prod --- tutor/templates/apps/openedx/settings/lms/production.py | 2 ++ tutor/templates/apps/openedx/settings/partials/common_all.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tutor/templates/apps/openedx/settings/lms/production.py b/tutor/templates/apps/openedx/settings/lms/production.py index 6c2793b3bc..a18e4daf57 100644 --- a/tutor/templates/apps/openedx/settings/lms/production.py +++ b/tutor/templates/apps/openedx/settings/lms/production.py @@ -11,6 +11,8 @@ ] CORS_ORIGIN_WHITELIST.append("{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}") +MEILISEARCH_PUBLIC_URL = "{{ MEILISEARCH_PUBLIC_URL }}" + {% if ENABLE_HTTPS %} # Properly set the "secure" attribute on session/csrf cookies. This is required in # Chrome to support samesite=none cookies. diff --git a/tutor/templates/apps/openedx/settings/partials/common_all.py b/tutor/templates/apps/openedx/settings/partials/common_all.py index f156b0e423..4aca2724f6 100644 --- a/tutor/templates/apps/openedx/settings/partials/common_all.py +++ b/tutor/templates/apps/openedx/settings/partials/common_all.py @@ -37,7 +37,6 @@ # Meilisearch connection parameters MEILISEARCH_ENABLED = True MEILISEARCH_URL = "{{ MEILISEARCH_URL }}" -MEILISEARCH_PUBLIC_URL = "{{ MEILISEARCH_PUBLIC_URL }}" MEILISEARCH_INDEX_PREFIX = "{{ MEILISEARCH_INDEX_PREFIX }}" MEILISEARCH_API_KEY = "{{ MEILISEARCH_API_KEY }}" MEILISEARCH_MASTER_KEY = "{{ MEILISEARCH_MASTER_KEY }}"