Introduce LMS_INTERNAL_ROOT_URL.
The LMS and edx-enterprise currently communicate via REST APIs, even though they are all running within the same service. Currently API URLs are constructed using LMS_ROOT_URL, but that is problematic on some systems where the external LMS_ROOT_URL is not accessible from the private network, or routing internal requests via the external URL is not desireable. This patch introduces a new setting variable LMS_INTERNAL_ROOT_URL which defaults to the value of LMS_ROOT_URL for backwards compatibility. The LMS and edx-enterprise will use LMS_INTERNAL_ROOT_URL to construct API URLs instead of LMS_ROOT_URL.
This commit is contained in:
@@ -20,7 +20,8 @@ CELERY_ALWAYS_EAGER = True
|
||||
HTTPS = 'off'
|
||||
|
||||
LMS_ROOT_URL = 'http://localhost:8000'
|
||||
ENTERPRISE_API_URL = LMS_ROOT_URL + '/enterprise/api/v1/'
|
||||
LMS_INTERNAL_ROOT_URL = LMS_ROOT_URL
|
||||
ENTERPRISE_API_URL = LMS_INTERNAL_ROOT_URL + '/enterprise/api/v1/'
|
||||
|
||||
################################ LOGGERS ######################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user