The versions resource constructs the links by using application_url,
but it's possible that the API endpoint is behind a load balancer
or SSL terminator. This means that the application_url might be
incorrect. This fix provides a config option (similar to other
services) which lets us override the host URL when constructing
links for the versions API.
Reviewed: https:/ /review. openstack. org/155555 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=1667ad5e80b e7d0bf3ac8e0241 0a18ce3a0ea4cd
Committed: https:/
Submitter: Zuul
Branch: master
commit 1667ad5e80be7d0 bf3ac8e02410a18 ce3a0ea4cd
Author: Zhao Chao <email address hidden>
Date: Wed Feb 7 11:07:02 2018 +0800
Allow host URL for versions to be configurable
The versions resource constructs the links by using application_url,
but it's possible that the API endpoint is behind a load balancer
or SSL terminator. This means that the application_url might be
incorrect. This fix provides a config option (similar to other
services) which lets us override the host URL when constructing
links for the versions API.
Co-Authored-By: Nikhil Manchanda <email address hidden> 46c74e0d097c496 3d2de731d30
Change-Id: I23f06c6c2d52ba
Closes-bug: 1384379