commit 6d0d7812e178fd3830ab75e70665a71acd6dfbfc
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 09:42:04 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Ceilometer. 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 Ceilometer.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Ceilometer, 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: I24f16dda49bd9e7930ca9f0d32bf0793463aff03
Closes-Bug: #1590608
(cherry picked from commit 30eb0f0ae16c7ffd0f90c3874d3cbc462d5863a0)
Reviewed: https:/ /review. openstack. org/385768 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=6d0d7812e17 8fd3830ab75e706 65a71acd6dfbfc
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 6d0d7812e178fd3 830ab75e70665a7 1acd6dfbfc
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 09:42:04 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Ceilometer. 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 Ceilometer.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Ceilometer, 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: I24f16dda49bd9e 7930ca9f0d32bf0 793463aff03 d0f90c3874d3cbc 462d5863a0)
Closes-Bug: #1590608
(cherry picked from commit 30eb0f0ae16c7ff