commit 3aeca07675a39ed12d0f224e71352faf03269bd8
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 09:23:11 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Aodh. The
purpose of thise middleware is to set up the request URL correctly in
case there is a proxy (For instance, a loadbalancer such as HAProxy)
in front of Aodh.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Aodh, one will notice that the protocol is incorrect; It will show
'http' instead of 'https'. So this middleware handles such cases.
Thus helping Keystone discovery work correctly.
The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.
Change-Id: If2ada8a94c8e1ceacd4509605b4cd766a78f71d5
Closes-Bug: #1590608
(cherry picked from commit 0f2a80d8efb86faea7ee94d7eb744bb66ad79ba9)
Reviewed: https:/ /review. openstack. org/385767 /git.openstack. org/cgit/ openstack/ aodh/commit/ ?id=3aeca07675a 39ed12d0f224e71 352faf03269bd8
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 3aeca07675a39ed 12d0f224e71352f af03269bd8
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 09:23:11 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Aodh. The
purpose of thise middleware is to set up the request URL correctly in
case there is a proxy (For instance, a loadbalancer such as HAProxy)
in front of Aodh.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Aodh, one will notice that the protocol is incorrect; It will show
'http' instead of 'https'. So this middleware handles such cases.
Thus helping Keystone discovery work correctly.
The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.
Change-Id: If2ada8a94c8e1c eacd4509605b4cd 766a78f71d5 ea7ee94d7eb744b b66ad79ba9)
Closes-Bug: #1590608
(cherry picked from commit 0f2a80d8efb86fa