Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ This plugin provides the following settings to Open edX components for integrati

- (common) ``TYPESENSE_ENABLED: bool = True`` - whether the Typesense backend is enabled
- (common) ``TYPESENSE_COLLECTION_PREFIX: str = "the_configured_collection_prefix"`` - a prefix that the backend should use for all collections (the API key is scoped to this prefix)
- (common) ``FORUM_SEARCH_BACKEND = "forum.search.typesense.TypesenseBackend"`` - necessary to override Tutor's default forum search backend value pointing to Meilisearch
- (cms, lms) ``TYPESENSE_URL: str = "http://typesense:8108"`` - the internal url for accessing the Typesense API
- (cms, lms) ``TYPESENSE_PUBLIC_URL: str = "http://(depends on TYPESENSE_PUBLIC_HOST)"`` - the public url to the Typesense API (for user searches on the frontend)
- (cms, lms) ``TYPESENSE_API_KEY: str = "the api key"`` - an api key for the Open edX backend to make updates to Typesense collections
Expand Down
3 changes: 3 additions & 0 deletions tutor_typesense/patches/k8s-deployments
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
value: "{{ TYPESENSE_BOOTSTRAP_API_KEY }}"
- name: TYPESENSE_DATA_DIR
value: /typesense_data
# forum expects up to 1000 per page - https://github.com/openedx/forum/blob/master/forum/constants.py
- name: TYPESENSE_MAX_PER_PAGE
value: "1000"
ports:
- containerPort: 8108
volumeMounts:
Expand Down
2 changes: 2 additions & 0 deletions tutor_typesense/patches/local-docker-compose-services
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ typesense:
environment:
TYPESENSE_API_KEY: "{{ TYPESENSE_BOOTSTRAP_API_KEY }}"
TYPESENSE_DATA_DIR: "/typesense_data"
# forum expects up to 1000 per page - https://github.com/openedx/forum/blob/master/forum/constants.py
TYPESENSE_MAX_PER_PAGE: "1000"
restart: unless-stopped
1 change: 1 addition & 0 deletions tutor_typesense/patches/openedx-common-settings
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
TYPESENSE_ENABLED = True
TYPESENSE_COLLECTION_PREFIX = "{{ TYPESENSE_COLLECTION_PREFIX }}"
FORUM_SEARCH_BACKEND = "forum.search.typesense.TypesenseBackend"