diff --git a/tutor/templates/apps/openedx/settings/lms/common.py b/tutor/templates/apps/openedx/settings/lms/common.py index 22a71b4..54e590b 100644 --- a/tutor/templates/apps/openedx/settings/lms/common.py +++ b/tutor/templates/apps/openedx/settings/lms/common.py @@ -48,9 +48,10 @@ GRADES_DOWNLOAD = { LOCALE_PATHS.append("/openedx/locale") # JWT is authentication for other openedx services -JWT_AUTH["ISSUER"] = "{% if ACTIVATE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/oauth2" -JWT_AUTH["JWT_AUDIENCE"] = "openedx" -JWT_AUTH["SECRET_KEY"] = "{{ OPENEDX_SECRET_KEY }}" +JWT_AUTH["JWT_ISSUER"] = "{{ JWT_COMMON_ISSUER }}" +JWT_AUTH["JWT_AUDIENCE"] = "{{ JWT_COMMON_AUDIENCE }}" +JWT_AUTH["JWT_SECRET_KEY"] = "{{ JWT_COMMON_SECRET_KEY }}" +JWT_AUTH["JWT_PRIVATE_SIGNING_JWK"] = None # Create folders if necessary for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]: diff --git a/tutor/templates/config.yml b/tutor/templates/config.yml index 254c347..bec3be6 100644 --- a/tutor/templates/config.yml +++ b/tutor/templates/config.yml @@ -42,6 +42,9 @@ LOCAL_PROJECT_NAME: "tutor_local" ELASTICSEARCH_HOST: "elasticsearch" ELASTICSEARCH_PORT: 9200 FORUM_HOST: "forum" +JWT_COMMON_AUDIENCE: "openedx" +JWT_COMMON_ISSUER: "{% if ACTIVATE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/oauth2" +JWT_COMMON_SECRET_KEY: "{{ OPENEDX_SECRET_KEY }}" K8S_NAMESPACE: "openedx" LANGUAGE_CODE: "en" MEMCACHED_HOST: "memcached"