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.
GNU Affero General Public License v3.0
22 stars 95 forks source link

Config multi domains for MFE #237

Open huyvt-2722 opened 1 week ago

huyvt-2722 commented 1 week ago

Has anyone successfully setup multiple domains for MFE? Maybe we can discuss I am trying to setup multiple domains for MFE, but I am stuck on where to find the following json {'BASE_URL': 'apps.local.edly.io', 'CSRF_TOKEN_API_PATH': '/csrf/api/v1/token', 'CREDENTIALS_BASE_URL': '', 'DISCOVERY_API_BASE_URL': '', 'FAVICON_URL': 'http://local.edly.io/favicon.ico', 'INFO_EMAIL': 'contact@local.edly.io', 'LANGUAGE_PREFERENCE_COOKIE_NAME': 'openedx-language-preference', 'LMS_BASE_URL': 'http://local.edly.io:8000', 'LOGIN_URL': 'http://local.edly.io:8000/login', 'LOGO_URL': 'http://local.edly.io:8000/theming/asset/images/logo.png', 'LOGO_WHITE_URL': 'http://local.edly.io:8000/theming/asset/images/logo.png', 'LOGO_TRADEMARK_URL': 'http://local.edly.io:8000/theming/asset/images/logo.png', 'LOGOUT_URL': 'http://local.edly.io:8000/logout', 'MARKETING_SITE_BASE_URL': 'http://local.edly.io:8000', 'PASSWORD_RESET_SUPPORT_LINK': 'mailto:contact@local.edly.io', 'REFRESH_ACCESS_TOKEN_ENDPOINT': 'http://local.edly.io:8000/login_refresh', 'SITE_NAME': 'My Open edX-----------', 'STUDIO_BASE_URL': 'http://studio.local.edly.io:8001', 'USER_INFO_COOKIE_NAME': 'user-info', 'ACCESS_TOKEN_COOKIE_NAME': 'edx-jwt-cookie-header-payload', 'DISABLE_ENTERPRISE_LOGIN': True, 'ACCOUNT_SETTINGS_URL': 'http://apps.local.edly.io:1997/account/', 'COURSE_AUTHORING_MICROFRONTEND_URL': 'http://apps.local.edly.io:2001/course-authoring', 'ENABLE_ASSETS_PAGE': 'true', 'ENABLE_HOME_PAGE_COURSE_API_V2': 'true', 'ENABLE_PROGRESS_GRAPH_SETTINGS': 'true', 'ENABLE_TAGGING_TAXONOMY_PAGES': 'true', 'DISCUSSIONS_MFE_BASE_URL': 'http://apps.local.edly.io:2002/discussions', 'LEARNING_BASE_URL': 'http://apps.local.edly.io:2000', 'ACCOUNT_PROFILE_URL': 'http://apps.local.edly.io:1995/profile', 'SCHEDULE_EMAIL_SECTION': True} it seems to be somewhere but not in the database or maybe I am looking in the wrong place Can someone show me where the above json is? I have spent days searching with no results I have read the source code looking for the answer but still no results.

zameel7 commented 3 days ago

This is there in the settings file. You can search for MFE_CONFIG.