Add OPTIONAL_UI_URL_PREFIX (#15506)

# Add a postfix to the UI URL patterns for UI URL generated by the API
# example if set to '' UI URL generated by the API for jobs would be $TOWER_URL/jobs
# example if set to 'execution' UI URL generated by the API for jobs would be $TOWER_URL/execution/jobs
This commit is contained in:
Hao Liu
2024-09-13 13:20:00 -04:00
committed by GitHub
parent 090511e65b
commit 38719405c3
5 changed files with 10 additions and 5 deletions

View File

@@ -1157,6 +1157,11 @@ include(os.path.join(os.path.dirname(dynamic_config.__file__), 'dynamic_settings
# example if set to 'controller' API pattern will be /api AND /api/controller
OPTIONAL_API_URLPATTERN_PREFIX = ''
# Add a postfix to the UI URL patterns for UI URL generated by the API
# example if set to '' UI URL generated by the API for jobs would be $TOWER_URL/jobs
# example if set to 'execution' UI URL generated by the API for jobs would be $TOWER_URL/execution/jobs
OPTIONAL_UI_URL_PREFIX = ''
# Use AWX base view, to give 401 on unauthenticated requests
ANSIBLE_BASE_CUSTOM_VIEW_PARENT = 'awx.api.generics.APIView'