commit 8be6a30d431da15e2389ebe288c133dc9a28d279
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 08:56:12 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Neutron-API. The
purpose of this 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 Neutron.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Neutron, 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: Ice9ee8f4e04050271d59858f92034c230325718b
Closes-Bug: #1590608
(cherry picked from commit 19c354aacd27f6941467e34826774c6199bc4f8f)
Reviewed: https:/ /review. openstack. org/387356 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=8be6a30d431 da15e2389ebe288 c133dc9a28d279
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 8be6a30d431da15 e2389ebe288c133 dc9a28d279
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Oct 10 08:56:12 2016 +0300
Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Neutron-API. The
purpose of this 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 Neutron.
So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Neutron, 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: Ice9ee8f4e04050 271d59858f92034 c230325718b 41467e34826774c 6199bc4f8f)
Closes-Bug: #1590608
(cherry picked from commit 19c354aacd27f69