commit 67cdbb737ae8438a535640ebefecdaaa0bcbfe63
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 09:16:45 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Gnocchi. 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 Gnocchi.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Gnocchi, 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: Ic5526cf37e70335fa2cc70946a271253f227f129
Closes-Bug: #1590608
(cherry picked from commit 2b1ed8d4528df8c3071343d1cd5764b6a7122fd1)
Reviewed: https:/ /review. openstack. org/385770 /git.openstack. org/cgit/ openstack/ gnocchi/ commit/ ?id=67cdbb737ae 8438a535640ebef ecdaaa0bcbfe63
Committed: https:/
Submitter: Jenkins
Branch: stable/3.0
commit 67cdbb737ae8438 a535640ebefecda aa0bcbfe63
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 09:16:45 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Gnocchi. 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 Gnocchi.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Gnocchi, 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: Ic5526cf37e7033 5fa2cc70946a271 253f227f129 3071343d1cd5764 b6a7122fd1)
Closes-Bug: #1590608
(cherry picked from commit 2b1ed8d4528df8c