From a3bf2ea2639a10d7fb636ab5fde05caa5d474274 Mon Sep 17 00:00:00 2001 From: Jeremy Ristau Date: Tue, 3 Nov 2026 23:08:52 -0500 Subject: [PATCH] fix: point LMS and Studio at the ai-translations container AI_TRANSLATIONS_API_URL used localhost:18760, which inside the LMS and CMS containers is the container itself, so every call to the service failed with a connection error. ai-translations' docker-compose runs the app as ai-translations.app on the devstack_default network, so use that hostname instead. Part of LP-410. Co-Authored-By: Claude Opus 5.5 --- py_configuration_files/cms.py | 2 +- py_configuration_files/lms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py_configuration_files/cms.py b/py_configuration_files/cms.py index fc741c80..b10d1125 100644 --- a/py_configuration_files/cms.py +++ b/py_configuration_files/cms.py @@ -289,7 +289,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing ORA_MICROFRONTEND_URL = 'http://localhost:1992' ############################ AI_TRANSLATIONS ################################## -AI_TRANSLATIONS_API_URL = 'http://localhost:18760/api/v1' +AI_TRANSLATIONS_API_URL = 'http://ai-translations.app:18760/api/v1' ############################ CSRF ################################## diff --git a/py_configuration_files/lms.py b/py_configuration_files/lms.py index 38f22124..3d60d213 100644 --- a/py_configuration_files/lms.py +++ b/py_configuration_files/lms.py @@ -545,7 +545,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing AUTH_DOCUMENTATION_URL = 'https://course-catalog-api-guide.readthedocs.io/en/latest/authentication/index.html' ############################ AI_TRANSLATIONS ################################## -AI_TRANSLATIONS_API_URL = 'http://localhost:18760/api/v1' +AI_TRANSLATIONS_API_URL = 'http://ai-translations.app:18760/api/v1' ############################ CSRF ##################################