Skip to content

chore: point Course Optimizer proxy at local xpert-ai-workflows - #231

Open
nsprenkle wants to merge 1 commit into
masterfrom
nsprenkle/xpert-ai-workflows-cora
Open

chore: point Course Optimizer proxy at local xpert-ai-workflows#231
nsprenkle wants to merge 1 commit into
masterfrom
nsprenkle/xpert-ai-workflows-cora

Conversation

@nsprenkle

Copy link
Copy Markdown
Member

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).


I've completed each of the following or determined they are not applicable:

  • Made a plan to communicate any major developer interface changes (or N/A)

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).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates devstack Studio (CMS) dev settings so the course_analysis_report proxy can reach a locally running xpert-ai-workflows service on the host machine (outside the Docker network), targeting port 19090.

Changes:

  • Add COURSE_ANALYSIS_WORKFLOW_URL pointing to host.docker.internal:19090.
  • Add COURSE_ANALYSIS_WORKFLOW_API_KEY for authenticating Studio to xpert-ai-workflows.
Suppressed comments (1)

py_configuration_files/cms.py:299

  • This value is a shared secret used to authenticate Studio to an external service; hardcoding it in the repo makes local overrides harder and risks accidental reuse outside dev. Prefer sourcing it from ENV_TOKENS (or an env var) and leaving the default empty/placeholder so developers explicitly configure it to match their xpert-ai-workflows instance.
COURSE_ANALYSIS_WORKFLOW_API_KEY = 'this_is_a_test_api_key'  # matches xpert-ai-workflows' local .env

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

# 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'
@nsprenkle
nsprenkle requested a review from cscetbon August 14, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants