# How do you configure tutor-mfe?

**URL:** <https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219>\
**Category:** Site Operations Help\
**Created:** [May 12, 2022, 2:02pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219 "2022-05-12T14:02:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpm0073](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/lpm0073/32/45_2.png) [@lpm0073](https://discuss.openedx.org/u/lpm0073)\
**Post date:** [May 12, 2022, 2:02pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219/1 "2022-05-12T14:02:00Z")

</div>

I’m trying to configure basic settings for the tutor-mfe plugin but many of these settings seem to be ignored:

```auto
pip install tutor-mfe
tutor plugins enable mfe
tutor config save --set MFE_DOCKER_IMAGE=${ECR_REGISTRY}/${ECR_REPOSITORY}:${REPOSITORY_TAG} \
                  --set MFE_HOST=${PROTOCOL}apps.${BASE_DOMAIN} \
                  --set MFE_BASE_URL=$MFE_HOST \
                  --set MFE_LMS_HOST=$BASE_DOMAIN \
                  --set MFE_LMS_BASE_URL=${PROTOCOL}${BASE_DOMAIN} \
                  --set MFE_CREDENTIALS_BASE_URL=${PROTOCOL}credentials.${BASE_DOMAIN} \
                  --set MFE_ECOMMERCE_BASE_URL=${PROTOCOL}ecommerce.${BASE_DOMAIN} \
                  --set MFE_ORDER_HISTORY_URL=${PROTOCOL}orders.${BASE_DOMAIN} \
                  --set MFE_DISCOVERY_HOST=discovery.${BASE_DOMAIN} \
                  --set MFE_DISCOVERY_API_BASE_URL=${PROTOCOL}discovery.${BASE_DOMAIN} \
                  --set MFE_STUDIO_BASE_URL=${PROTOCOL}studio.${BASE_DOMAIN} \
                  --set MFE_MARKETING_SITE_BASE_URL=$BASE_URL \
                  --set MFE_SITE_NAME="${MFE_SITE_NAME}" \
                  --set MFE_PLATFORM_NAME="${MFE_PLATFORM_NAME}" \
                  --set MFE_FAVICON_URL=$MFE_FAVICON_URL \
                  --set MFE_LOGO_WHITE_URL=$MFE_LOGO_WHITE_URL \
                  --set MFE_LOGO_TRADEMARK_URL=$MFE_LOGO_TRADEMARK_URL \
                  --set MFE_LOGO_URL=$MFE_LOGO_URL

```

what am I doing wrong?

---

<div class="post-metadata">

**Author:** ![lpm0073](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/lpm0073/32/45_2.png) [@lpm0073](https://discuss.openedx.org/u/lpm0073)\
**Post date:** [May 12, 2022, 4:35pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219/2 "2022-05-12T16:35:12Z")

</div>

This is probably a hacky solution, but, i got past this problem by creating my own production configuration file for mfe and then copying it, as follows:

```auto
          pip install tutor-mfe
          tutor plugins enable mfe
          tutor config save --set MFE_DOCKER_IMAGE=${ECR_REGISTRY}/${ECR_REPOSITORY}:${REPOSITORY_TAG}
          cp my_production_config "$(tutor config printroot)/env/plugins/mfe/build/mfe/env/production"

```

Here is a link to my exact Github Actions workflow if you’re interested: [usf\_build\_mfe\_image.yml](https://github.com/academiacentral-org/openedx_devops/blob/main/.github/workflows/usf_build_mfe_image.yml)

---

<div class="post-metadata">

**Author:** ![ghassan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ghassan/32/2779_2.png) [@ghassan](https://discuss.openedx.org/u/ghassan)\
**Post date:** [May 12, 2022, 5:11pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219/3 "2022-05-12T17:11:54Z")

</div>

Not all of the configuration you are trying to change above are tutorconfig params… some of them is env variables, for [production](https://github.com/overhangio/tutor-mfe/blob/master/tutormfe/templates/mfe/build/mfe/env/production) or [development](https://github.com/overhangio/tutor-mfe/blob/master/tutormfe/templates/mfe/build/mfe/env/development).  
If you see last line of each file has `{{ patch("mfe-env-production") }}` or `{{ patch("mfe-env-development") }}`. So this means to on way to override any would be to create a tutor plugin file, which is typically done as a yaml file (deprecated v0). e.g…

> To change the MFEs logos from the default to your own logos, override the corresponding settings in the MFEs environment using patches mfe-env-production and mfe-env-development. For example, using the following plugin:

> name: mfe\_branding\_plugin  
> version: 0.1.0  
> patches:  
> mfe-env-development: |  
> LOGO\_URL=/logo.svg  
> LOGO\_TRADEMARK\_URL=/logo-trademark.svg  
> LOGO\_WHITE\_URL=/logo-white.svg  
> FAVICON\_URL=/favicon.ico  
> mfe-env-production: |  
> LOGO\_URL=/logo.svg  
> LOGO\_TRADEMARK\_URL=/logo-trademark.svg  
> LOGO\_WHITE\_URL=/logo-white.svg  
> FAVICON\_URL=/favicon.ico  
> \[1\]

* * *

1. [GitHub - overhangio/tutor-mfe: This plugin makes it possible to easily add micro frontend (MFE) applications on top of an Open edX platform that runs with Tutor.](https://github.com/overhangio/tutor-mfe#customising-mfes)

---

<div class="post-metadata">

**Author:** ![lpm0073](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/lpm0073/32/45_2.png) [@lpm0073](https://discuss.openedx.org/u/lpm0073)\
**Post date:** [May 12, 2022, 5:26pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219/4 "2022-05-12T17:26:19Z")

</div>

what would i do with this file? how is it executed, or applied to the configuration? i saw this in the plugin README, but there is no explanation about how to actually create a patch, nor what you’re supposed to do with it once you’ve created it.

---

<div class="post-metadata">

**Author:** ![ghassan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ghassan/32/2779_2.png) [@ghassan](https://discuss.openedx.org/u/ghassan)\
**Post date:** [May 12, 2022, 5:46pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219/5 "2022-05-12T17:46:42Z")

</div>

Yes I guess the documenation assumes you know about plugin file, it shuold ideally have a link to this [Getting started with plugin development — Tutor documentation](https://docs.tutor.overhang.io/plugins/v0/gettingstarted.html#yaml-file)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [August 10, 2022, 5:47pm UTC](https://discuss.openedx.org/t/how-do-you-configure-tutor-mfe/7219/6 "2022-08-10T17:47:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
