From 85abfde8e2f1304074da5519af122f130b1a212f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Mon, 8 Jan 2024 15:11:06 -0300 Subject: [PATCH] feat: add course authoring mfe base url to env vars --- .../20240108_150445_romulo_add_course_authoring_mfe_base_url.md | 1 + tutormfe/patches/openedx-lms-development-settings | 1 + tutormfe/patches/openedx-lms-production-settings | 1 + 3 files changed, 3 insertions(+) create mode 100644 changelog.d/20240108_150445_romulo_add_course_authoring_mfe_base_url.md diff --git a/changelog.d/20240108_150445_romulo_add_course_authoring_mfe_base_url.md b/changelog.d/20240108_150445_romulo_add_course_authoring_mfe_base_url.md new file mode 100644 index 00000000..87fed92f --- /dev/null +++ b/changelog.d/20240108_150445_romulo_add_course_authoring_mfe_base_url.md @@ -0,0 +1 @@ +- [Improvement] Adds the "COURSE_AUTHORING_MFE_BASE_URL" env var pointing to the Course Authoring MFE address. (by @rpenido) diff --git a/tutormfe/patches/openedx-lms-development-settings b/tutormfe/patches/openedx-lms-development-settings index bf633746..7e3f6a4b 100644 --- a/tutormfe/patches/openedx-lms-development-settings +++ b/tutormfe/patches/openedx-lms-development-settings @@ -38,6 +38,7 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL {% if get_mfe("course-authoring") %} MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True +MFE_CONFIG["COURSE_AUTHORING_MFE_BASE_URL"] = "http://{{ MFE_HOST }}:{{ get_mfe("course-authoring")["port"] }}" {% endif %} {% if get_mfe("discussions") %} diff --git a/tutormfe/patches/openedx-lms-production-settings b/tutormfe/patches/openedx-lms-production-settings index 1df4bcfe..a4df06cb 100644 --- a/tutormfe/patches/openedx-lms-production-settings +++ b/tutormfe/patches/openedx-lms-production-settings @@ -39,6 +39,7 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL {% if get_mfe("course-authoring") %} MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True +MFE_CONFIG["COURSE_AUTHORING_MFE_BASE_URL"] = "http://{{ MFE_HOST }}:{{ get_mfe("course-authoring")["port"] }}" {% endif %} {% if get_mfe("discussions") %}