From 05fb42960d7fe7bd92e654ffaa8cba73526f51f9 Mon Sep 17 00:00:00 2001 From: hinakhadim Date: Tue, 20 Feb 2024 18:03:17 +0500 Subject: [PATCH] fix: Issue MFE_HOST url redirects to LMS_HOST --- changelog.d/20240220_180043_hina.khadim_mfe_url_issue.md | 1 + tutormfe/patches/caddyfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20240220_180043_hina.khadim_mfe_url_issue.md diff --git a/changelog.d/20240220_180043_hina.khadim_mfe_url_issue.md b/changelog.d/20240220_180043_hina.khadim_mfe_url_issue.md new file mode 100644 index 00000000..58d0a2a6 --- /dev/null +++ b/changelog.d/20240220_180043_hina.khadim_mfe_url_issue.md @@ -0,0 +1 @@ +- [BugFix] Fix issue of MFE_HOST url redirection to LMS_HOST (by @hinakhadim) diff --git a/tutormfe/patches/caddyfile b/tutormfe/patches/caddyfile index 55dec86f..4d743ebd 100644 --- a/tutormfe/patches/caddyfile +++ b/tutormfe/patches/caddyfile @@ -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 }