Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Overhang.IO committed Mar 6, 2024
2 parents d985d60 + 6e2809a commit ab7f492
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Fix MFE runtime config via site configuration in dev mode (by @arbrandes).
1 change: 1 addition & 0 deletions changelog.d/20240220_180043_hina.khadim_mfe_url_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [BugFix] Fix issue of MFE_HOST url redirection to LMS_HOST (by @hinakhadim)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Improvement] Adds the "COURSE_AUTHORING_MFE_BASE_URL" to MFE_CONFIG pointing to the Course Authoring MFE address. (by @rpenido)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] add a missing curly braces in the openedx-lms-development-settings patch
2 changes: 1 addition & 1 deletion tutormfe/patches/caddyfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ MFE_HOST }}{$default_site_port} {
respond / 204
redir / {% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ LMS_HOST }}
request_body {
max_size 2MB
}
Expand Down
1 change: 1 addition & 0 deletions tutormfe/patches/openedx-lms-development-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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_MICROFRONTEND_URL"] = "http://{{ MFE_HOST }}:{{ get_mfe("course-authoring")["port"] }}/course-authoring"
{% endif %}

{% if get_mfe("discussions") %}
Expand Down
1 change: 1 addition & 0 deletions tutormfe/patches/openedx-lms-production-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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_MICROFRONTEND_URL"] = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/course-authoring"
{% endif %}

{% if get_mfe("discussions") %}
Expand Down
5 changes: 4 additions & 1 deletion tutormfe/templates/mfe/apps/mfe/webpack.dev-tutor.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ module.exports = merge(baseDevConfig, {
// https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
allowedHosts: 'all',
proxy: {
'/api/mfe_config/v1' : 'http://{{ LMS_HOST }}:8000',
'/api/mfe_config/v1': {
target: 'http://{{ LMS_HOST }}:8000',
changeOrigin: true,
}
}
},
})
Expand Down

0 comments on commit ab7f492

Please sign in to comment.