@@ -269,6 +269,10 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
269
269
ENTERPRISE_LEARNER_PORTAL_NETLOC = 'localhost:8734'
270
270
ENTERPRISE_LEARNER_PORTAL_BASE_URL = 'http://' + ENTERPRISE_LEARNER_PORTAL_NETLOC
271
271
272
+ ########################## LEARNING MICROFRONTEND ##############################
273
+ LEARNING_MICROFRONTEND_PORT = os .environ .get ('LEARNING_MICROFRONTEND_PORT' , '2010' )
274
+ LEARNING_MICROFRONTEND_NETLOC = 'localhost:' + LEARNING_MICROFRONTEND_PORT
275
+
272
276
########################## ENTERPRISE ADMIN PORTAL ##############################
273
277
ENTERPRISE_ADMIN_PORTAL_NETLOC = 'localhost:1991'
274
278
ENTERPRISE_ADMIN_PORTAL_BASE_URL = 'http://' + ENTERPRISE_ADMIN_PORTAL_NETLOC
@@ -308,14 +312,14 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
308
312
'localhost:1997' , # frontend-app-account
309
313
'localhost:1976' , # frontend-app-program-console
310
314
'localhost:1994' , # frontend-app-gradebook
311
- 'localhost:2000' , # frontend-app-learning
312
315
'localhost:2001' , # frontend-app-course-authoring
313
316
'localhost:18400' , # frontend-app-publisher
314
317
'localhost:1993' , # frontend-app-ora-grading
315
318
'localhost:1996' , # frontend-app-learner-dashboard
316
319
ENTERPRISE_LEARNER_PORTAL_NETLOC , # frontend-app-learner-portal-enterprise
317
320
ENTERPRISE_ADMIN_PORTAL_NETLOC , # frontend-app-admin-portal
318
321
ENTERPRISE_CHECKOUT_NETLOC , # frontend-app-enterprise-checkout
322
+ LEARNING_MICROFRONTEND_NETLOC , # frontend-app-learning
319
323
])
320
324
321
325
###################### JWTs ######################
@@ -386,7 +390,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
386
390
EDXNOTES_CLIENT_NAME = 'edx_notes_api-backend-service'
387
391
388
392
############## Settings for Microfrontends #########################
389
- LEARNING_MICROFRONTEND_URL = 'http://localhost:2000'
393
+ LEARNING_MICROFRONTEND_URL = 'http://localhost:' + LEARNING_MICROFRONTEND_PORT
390
394
ACCOUNT_MICROFRONTEND_URL = 'http://localhost:1997'
391
395
PROFILE_MICROFRONTEND_URL = 'http://localhost:1995'
392
396
COMMUNICATIONS_MICROFRONTEND_URL = 'http://localhost:1984'
@@ -546,7 +550,6 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
546
550
547
551
# MFEs that will call this service in devstack
548
552
CSRF_TRUSTED_ORIGINS = [
549
- 'http://localhost:2000' , # frontend-app-learning
550
553
'http://localhost:2001' , # frontend-app-course-authoring
551
554
'http://localhost:1997' , # frontend-app-account
552
555
'http://localhost:1995' , # frontend-app-profile
@@ -559,6 +562,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
559
562
'http://localhost:18450' , # frontend-app-support-tools
560
563
'http://localhost:1994' , # frontend-app-gradebook
561
564
'http://localhost:1996' , # frontend-app-learner-dashboard
565
+ LEARNING_MICROFRONTEND_URL # frontend-app-learning
562
566
]
563
567
564
568
############################ Codejail ############################
0 commit comments