From 52e67bc43c58bef89c43f66138311205b02905d3 Mon Sep 17 00:00:00 2001 From: nsprenkle Date: Wed, 12 Aug 2026 17:15:38 -0400 Subject: [PATCH] chore: point Course Optimizer proxy at local xpert-ai-workflows Studio's course_analysis_report proxy views need to reach xpert-ai-workflows running on the host machine (not the devstack docker network) via Docker's host-gateway alias, on port 19090 (chosen to avoid every port already in use across this repo's own service/MFE allocations). --- py_configuration_files/cms.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/py_configuration_files/cms.py b/py_configuration_files/cms.py index fc741c80..30a97bc6 100644 --- a/py_configuration_files/cms.py +++ b/py_configuration_files/cms.py @@ -291,6 +291,13 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing ############################ AI_TRANSLATIONS ################################## AI_TRANSLATIONS_API_URL = 'http://localhost:18760/api/v1' +############################ COURSE OPTIMIZER EXTENDED REPORT ################## +# xpert-ai-workflows running on the host machine (not in the devstack docker +# network), reached via Docker's host-gateway alias. Shared secret must match +# that service's own EDX_STUDIO_API_KEY. +COURSE_ANALYSIS_WORKFLOW_URL = 'http://host.docker.internal:19090' +COURSE_ANALYSIS_WORKFLOW_API_KEY = 'this_is_a_test_api_key' # matches xpert-ai-workflows' local .env + ############################ CSRF ################################## # MFEs that will call this service in devstack