commit 6312c8e7b4bf2dd0afbeb19819779b78ddf3e942
Author: Hanxi Liu <email address hidden>
Date: Mon Oct 10 16:39:04 2016 +0800
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Panko. 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 Panko.
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: Ifa9dad55cfedeb8b804d675d3d4856af6096b039
Closes-Bug: #1590608
(cherry picked from commit 90faa85ecc6cc4e6875c5cb14285f20104830b69)
Reviewed: https:/ /review. openstack. org/385819 /git.openstack. org/cgit/ openstack/ panko/commit/ ?id=6312c8e7b4b f2dd0afbeb19819 779b78ddf3e942
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 6312c8e7b4bf2dd 0afbeb19819779b 78ddf3e942
Author: Hanxi Liu <email address hidden>
Date: Mon Oct 10 16:39:04 2016 +0800
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Panko. 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 Panko.
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: Ifa9dad55cfedeb 8b804d675d3d485 6af6096b039 6875c5cb14285f2 0104830b69)
Closes-Bug: #1590608
(cherry picked from commit 90faa85ecc6cc4e