From 4e91df0341533e09543b7e5b5c71e73e26088aa9 Mon Sep 17 00:00:00 2001 From: Deimer Morales <105317492+DeimerM@users.noreply.github.com> Date: Mon, 25 May 2026 15:58:38 -0500 Subject: [PATCH 1/5] feat: add new patch and update rules to match tutor style in extra LMSs --- drydock/patches/caddyfile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drydock/patches/caddyfile b/drydock/patches/caddyfile index 6ef06356..9d05b1b9 100644 --- a/drydock/patches/caddyfile +++ b/drydock/patches/caddyfile @@ -7,15 +7,24 @@ {{ patch("caddyfile-mfe-by-path") }} + # Limit profile image upload size - request_body /api/profile_images/*/*/upload { - max_size 1MB - } - request_body { - max_size 4MB + handle_path /api/profile_images/*/*/upload { + request_body { + max_size 1MB + } } + import proxy "lms:8000" + {{ patch("caddyfile-lms")|indent(4) }} + + handle_path /* { + request_body { + max_size 4MB + } + } + {% if DRYDOCK_ENABLE_SCORM and MINIO_HOST is defined %} @scorm_matcher { path /scorm-proxy/* From 8c3c6508d6e9427088f7dd2aef89a0c701f0e215 Mon Sep 17 00:00:00 2001 From: Deimer Morales <105317492+DeimerM@users.noreply.github.com> Date: Mon, 25 May 2026 16:43:15 -0500 Subject: [PATCH 2/5] fix: remove caddyfile-mfe-by-path patch as it is included in caddyfile-lms --- drydock/patches/caddyfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/drydock/patches/caddyfile b/drydock/patches/caddyfile index 9d05b1b9..d7f07d96 100644 --- a/drydock/patches/caddyfile +++ b/drydock/patches/caddyfile @@ -5,9 +5,6 @@ } rewrite @favicon_matcher /theming/asset/images/favicon.ico - {{ patch("caddyfile-mfe-by-path") }} - - # Limit profile image upload size handle_path /api/profile_images/*/*/upload { request_body { From 8691b7d6dececbb38a3b7f177c686672ad8b7d13 Mon Sep 17 00:00:00 2001 From: Deimer M Date: Mon, 25 May 2026 17:12:21 -0500 Subject: [PATCH 3/5] feat: added new changelog entry --- ...deimer.morales_refactor_extra_lms_rules.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md diff --git a/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md b/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md new file mode 100644 index 00000000..d0902be7 --- /dev/null +++ b/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md @@ -0,0 +1,28 @@ + + + +### Changed + +- Restructured the Caddyfile rules for extra LMSs using `handle_path` blocks to align with standard Tutor styling and guarantee consistent inline plugin enforcement. + + From 50a3bb43c2db9b175ffaf5fbe43f317d8091a288 Mon Sep 17 00:00:00 2001 From: Deimer Morales <105317492+DeimerM@users.noreply.github.com> Date: Tue, 26 May 2026 11:26:53 -0500 Subject: [PATCH 4/5] fix: update changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Moisés González --- .../20260525_165246_deimer.morales_refactor_extra_lms_rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md b/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md index d0902be7..0b42d8ce 100644 --- a/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md +++ b/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md @@ -11,7 +11,7 @@ For top level release notes, leave all the headers commented out. - A bullet item for the Added category. --> -### Changed +### Fixed - Restructured the Caddyfile rules for extra LMSs using `handle_path` blocks to align with standard Tutor styling and guarantee consistent inline plugin enforcement. ### Fixed -- Restructured the Caddyfile rules for extra LMSs using `handle_path` blocks to align with standard Tutor styling and guarantee consistent inline plugin enforcement. +- Properly mirror the LMS caddy block in the default catch-all block used by `DRYDOCK_ENABLE_MULTITENANCY`.