@@ -269,6 +269,10 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
269269ENTERPRISE_LEARNER_PORTAL_NETLOC = 'localhost:8734'
270270ENTERPRISE_LEARNER_PORTAL_BASE_URL = 'http://' + ENTERPRISE_LEARNER_PORTAL_NETLOC
271271
272+ ########################## LEARNING MICROFRONTEND ##############################
273+ LEARNING_MICROFRONTEND_PORT = os .environ .get ('LEARNING_MICROFRONTEND_PORT' , '2010' )
274+ LEARNING_MICROFRONTEND_NETLOC = 'localhost:' + LEARNING_MICROFRONTEND_PORT
275+
272276########################## ENTERPRISE ADMIN PORTAL ##############################
273277ENTERPRISE_ADMIN_PORTAL_NETLOC = 'localhost:1991'
274278ENTERPRISE_ADMIN_PORTAL_BASE_URL = 'http://' + ENTERPRISE_ADMIN_PORTAL_NETLOC
@@ -308,14 +312,14 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
308312 'localhost:1997' , # frontend-app-account
309313 'localhost:1976' , # frontend-app-program-console
310314 'localhost:1994' , # frontend-app-gradebook
311- 'localhost:2000' , # frontend-app-learning
312315 'localhost:2001' , # frontend-app-course-authoring
313316 'localhost:18400' , # frontend-app-publisher
314317 'localhost:1993' , # frontend-app-ora-grading
315318 'localhost:1996' , # frontend-app-learner-dashboard
316319 ENTERPRISE_LEARNER_PORTAL_NETLOC , # frontend-app-learner-portal-enterprise
317320 ENTERPRISE_ADMIN_PORTAL_NETLOC , # frontend-app-admin-portal
318321 ENTERPRISE_CHECKOUT_NETLOC , # frontend-app-enterprise-checkout
322+ LEARNING_MICROFRONTEND_NETLOC , # frontend-app-learning
319323])
320324
321325###################### JWTs ######################
@@ -386,7 +390,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
386390EDXNOTES_CLIENT_NAME = 'edx_notes_api-backend-service'
387391
388392############## Settings for Microfrontends #########################
389- LEARNING_MICROFRONTEND_URL = 'http://localhost:2000'
393+ LEARNING_MICROFRONTEND_URL = 'http://localhost:' + LEARNING_MICROFRONTEND_PORT
390394ACCOUNT_MICROFRONTEND_URL = 'http://localhost:1997'
391395PROFILE_MICROFRONTEND_URL = 'http://localhost:1995'
392396COMMUNICATIONS_MICROFRONTEND_URL = 'http://localhost:1984'
@@ -546,7 +550,6 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
546550
547551# MFEs that will call this service in devstack
548552CSRF_TRUSTED_ORIGINS = [
549- 'http://localhost:2000' , # frontend-app-learning
550553 'http://localhost:2001' , # frontend-app-course-authoring
551554 'http://localhost:1997' , # frontend-app-account
552555 'http://localhost:1995' , # frontend-app-profile
@@ -559,6 +562,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
559562 'http://localhost:18450' , # frontend-app-support-tools
560563 'http://localhost:1994' , # frontend-app-gradebook
561564 'http://localhost:1996' , # frontend-app-learner-dashboard
565+ LEARNING_MICROFRONTEND_URL # frontend-app-learning
562566]
563567
564568############################ Codejail ############################
0 commit comments