Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework how we grab the mfe_config based on subdomain change. #238

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

ztraboo
Copy link

@ztraboo ztraboo commented Oct 23, 2024

MFE Configuration
With a S3/Cloudfront distribution fro the MFE frontends, we went with a https://{mfe}.{lms-domain} change making the MFE app a subdomain of the lms domain.

Example of additional BASE_URL needed within each MFE app configuraiton.

{
    "MFE_CONFIG": {
        "BASE_URL": "https://apps.{lms-domain}"
    },
    "MFE_CONFIG_ACCOUNT": {
        "BASE_URL": "https://account.{lms-domain}"
    },
    "MFE_CONFIG_COURSE-AUTHORING": {
        "BASE_URL": "https://course-authoring.{lms-domain}"
    },
    "MFE_CONFIG_GRADEBOOK": {
        "BASE_URL": "https://gradebook.{lms-domain}"
    },
    "MFE_CONFIG_LEARNING": {
        "BASE_URL": "https://learning.{lms-domain}"
    },
    "MFE_CONFIG_PROFILE": {
        "BASE_URL": "https://profile.{lms-domain}"
    }
}

…nge.

With a S3/Cloudfront distribution fro the MFE frontends, we went with a https://{mfe}.{lms-domain} change making the MFE app a subdomain of the lms domain.

Example of additional `BASE_URL` needed within each MFE app configuraiton.
```
{
    "MFE_CONFIG": {
        "BASE_URL": "https://apps.{lms-domain}"
    },
    "MFE_CONFIG_ACCOUNT": {
        "BASE_URL": "https://account.{lms-domain}"
    },
    "MFE_CONFIG_COURSE-AUTHORING": {
        "BASE_URL": "https://course-authoring.{lms-domain}"
    },
    "MFE_CONFIG_GRADEBOOK": {
        "BASE_URL": "https://gradebook.{lms-domain}"
    },
    "MFE_CONFIG_LEARNING": {
        "BASE_URL": "https://learning.{lms-domain}"
    },
    "MFE_CONFIG_PROFILE": {
        "BASE_URL": "https://profile.{lms-domain}"
    }
}
```
@ztraboo ztraboo self-assigned this Oct 23, 2024
@ztraboo ztraboo added this to the cu-release/maple.3 milestone Oct 23, 2024
@ztraboo ztraboo changed the title Push additional changes needed for aws load balancing needs. Rework how we grab the mfe_config based on domain change. Oct 23, 2024
@ztraboo ztraboo changed the title Rework how we grab the mfe_config based on domain change. Rework how we grab the mfe_config based on subdomain change. Oct 23, 2024
@ztraboo ztraboo merged commit 0cdcd1c into develop/maple.3 Oct 23, 2024
21 of 29 checks passed
@ztraboo
Copy link
Author

ztraboo commented Oct 23, 2024

Merged this without having the tests complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant