Skip to content

Commit

Permalink
fix: set MEILISEARCH_PUBLIC_URL specifically for dev and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Oct 22, 2024
1 parent 5332024 commit 0f370c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tutor/templates/apps/openedx/settings/lms/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 0f370c8

Please sign in to comment.