Skip to content

feat: Add support for per-domain MFE config

Kshitij Sobti requested to merge kshitij/multi-tenant-mfes into main

Description

This MR improves the handling of multiple domains when using a separate themed MFE for each domain. It automatically sets up basic CSRF config for each tenant in this case.

It also fixes the caddyfile to send the correct host header.

Finally, it adds support for specifying which MFEs to disable in the tutor config file.

Supporting information

Testing instructions

Steps to test the changes:

  1. Set up a multi-domain instance using GROVE_ADDITIONAL_DOMAINS.
  2. Enable MFE proxying for some domains
  3. Specify the mfe domain for each lms domain
  4. The deployed instance should use the correct MFE domain, and the MFE domain should be able to properly call APIs without additional config.

Dependencies

NA

Screenshots

NA

Checklist

If any of the items below is not applicable, do not remove them, but put a check in it.

  • Git commit history is clean
  • Git commits are following conventional-commit practices
  • Unit tests are added/updated
  • Documentation is added/updated

Additional context

Add any other context about the merge request here.

Edited by Kshitij Sobti

Merge request reports