mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-25 22:18:24 +00:00
Make it possible to run an Elasticsearch service on https
This is useful when running elasticsearch from 3rd-party vendors.
This commit is contained in:
parent
a7eb9be2fe
commit
702e8cca7d
@ -2,6 +2,10 @@
|
||||
|
||||
Note: Breaking changes between versions are indicated by "💥".
|
||||
|
||||
## Unreleased
|
||||
|
||||
- [Improvement] Make it possible to run an Elasticsearch service on https
|
||||
|
||||
## v3.11.5 (2020-02-27)
|
||||
|
||||
- [Improvement] Switch edx-platform from open-release/ironwood.2 tag to the open-release/ironwood.master branch
|
||||
|
@ -113,6 +113,7 @@ By default, a running Open edX platform deployed with Tutor includes all necessa
|
||||
Elasticsearch
|
||||
*************
|
||||
|
||||
- ``ELASTICSEARCH_PROTOCOL`` (default: ``"http"``)
|
||||
- ``ELASTICSEARCH_HOST`` (default: ``"elasticsearch"``)
|
||||
- ``ELASTICSEARCH_PORT`` (default: ``9200``)
|
||||
- ``ELASTICSEARCH_HEAP_SIZE`` (default: ``"1g"``)
|
||||
|
@ -26,6 +26,7 @@
|
||||
"COMPREHENSIVE_THEME_DIRS": ["/openedx/themes"],
|
||||
"STATIC_ROOT_BASE": "/openedx/staticfiles",
|
||||
"ELASTIC_SEARCH_CONFIG": [{
|
||||
{% if ELASTICSEARCH_PROTOCOL == "https" %}"use_ssl": true,{% endif %}
|
||||
"host": "{{ ELASTICSEARCH_HOST }}",
|
||||
"port": {{ ELASTICSEARCH_PORT }}
|
||||
}],
|
||||
|
@ -32,6 +32,7 @@
|
||||
"COMPREHENSIVE_THEME_DIRS": ["/openedx/themes"],
|
||||
"STATIC_ROOT_BASE": "/openedx/staticfiles",
|
||||
"ELASTIC_SEARCH_CONFIG": [{
|
||||
{% if ELASTICSEARCH_PROTOCOL == "https" %}"use_ssl": true,{% endif %}
|
||||
"host": "{{ ELASTICSEARCH_HOST }}",
|
||||
"port": {{ ELASTICSEARCH_PORT }}
|
||||
}],
|
||||
|
@ -43,6 +43,7 @@ DOCKER_REGISTRY: "docker.io/"
|
||||
LOCAL_PROJECT_NAME: "tutor_local"
|
||||
ELASTICSEARCH_HOST: "elasticsearch"
|
||||
ELASTICSEARCH_PORT: 9200
|
||||
ELASTICSEARCH_PROTOCOL: "http"
|
||||
ELASTICSEARCH_HEAP_SIZE: 1g
|
||||
FORUM_HOST: "forum"
|
||||
JWT_COMMON_AUDIENCE: "openedx"
|
||||
|
@ -108,7 +108,7 @@ spec:
|
||||
- containerPort: 4567
|
||||
env:
|
||||
- name: SEARCH_SERVER
|
||||
value: "http://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}"
|
||||
value: "{{ ELASTICSEARCH_PROTOCOL }}://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}"
|
||||
- name: MONGODB_AUTH
|
||||
value: "{% if MONGODB_USERNAME and MONGODB_PASSWORD %}{{ MONGODB_USERNAME}}:{{ MONGODB_PASSWORD }}@{% endif %}"
|
||||
- name: MONGODB_HOST
|
||||
|
@ -88,7 +88,7 @@ services:
|
||||
forum:
|
||||
image: {{ DOCKER_REGISTRY }}{{ DOCKER_IMAGE_FORUM }}
|
||||
environment:
|
||||
SEARCH_SERVER: "http://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}"
|
||||
SEARCH_SERVER: "{{ ELASTICSEARCH_PROTOCOL }}://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}"
|
||||
MONGODB_AUTH: "{% if MONGODB_USERNAME and MONGODB_PASSWORD %}{{ MONGODB_USERNAME}}:{{ MONGODB_PASSWORD }}@{% endif %}"
|
||||
MONGODB_HOST: "{{ MONGODB_HOST }}"
|
||||
MONGODB_PORT: "{{ MONGODB_PORT }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user