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 0000000..e4ae25a --- /dev/null +++ b/changelog.d/20260525_165246_deimer.morales_refactor_extra_lms_rules.md @@ -0,0 +1,28 @@ + + + +### Fixed + +- Properly mirror the LMS caddy block in the default catch-all block used by `DRYDOCK_ENABLE_MULTITENANCY`. + + diff --git a/drydock/patches/caddyfile b/drydock/patches/caddyfile index 6ef0635..d7f07d9 100644 --- a/drydock/patches/caddyfile +++ b/drydock/patches/caddyfile @@ -5,17 +5,23 @@ } rewrite @favicon_matcher /theming/asset/images/favicon.ico - {{ 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/*