From f0aa8a56bdebdb1798d8984c7a771443486944cc Mon Sep 17 00:00:00 2001 From: Illia Shestakov Date: Wed, 13 Sep 2023 15:29:05 +0300 Subject: [PATCH] feat: allow to patch MFE caddyfile Comes in hand if you want to add basicauth --- ...20230914_125107_illia_caddyfile_patch_master.md | 14 ++++++++++++++ tutormfe/templates/mfe/apps/mfe/Caddyfile | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 changelog.d/20230914_125107_illia_caddyfile_patch_master.md diff --git a/changelog.d/20230914_125107_illia_caddyfile_patch_master.md b/changelog.d/20230914_125107_illia_caddyfile_patch_master.md new file mode 100644 index 00000000..c4bb282f --- /dev/null +++ b/changelog.d/20230914_125107_illia_caddyfile_patch_master.md @@ -0,0 +1,14 @@ + + + + + + +- [Improvement] Allow to patch MFE Caddyfile. (by @snglth) diff --git a/tutormfe/templates/mfe/apps/mfe/Caddyfile b/tutormfe/templates/mfe/apps/mfe/Caddyfile index ec6a9b44..19081c99 100644 --- a/tutormfe/templates/mfe/apps/mfe/Caddyfile +++ b/tutormfe/templates/mfe/apps/mfe/Caddyfile @@ -12,6 +12,8 @@ } } + {{ patch("mfe-caddyfile") | indent(4) }} + reverse_proxy /api/mfe_config/v1* lms:8000 { # We need to specify the host header, otherwise it will be rejected with 400 # from the lms.