commit 32295b5c3c2f68cced53232ec22e5c31f62c4466
Author: Deliang Fan <email address hidden>
Date: Wed May 6 18:37:29 2015 +0800
Add SSL middleware to fix incorrect version host_url
The Manila API does not behave properly if it is behind an SSL
termination proxy. If this is the case, the host_url in version
resource are build using http protocol instead of https.
To handle to correct host_url with proxy, first, we should enable
X-Forwarded-Host in proxy so that Manila can get the right client
ip. Second, we should enable X-Forwarded-Proto, with the new SSL
middleware, Manila will get original protocol.
Reviewed: https:/ /review. openstack. org/180483 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=32295b5c3c2 f68cced53232ec2 2e5c31f62c4466
Committed: https:/
Submitter: Jenkins
Branch: master
commit 32295b5c3c2f68c ced53232ec22e5c 31f62c4466
Author: Deliang Fan <email address hidden>
Date: Wed May 6 18:37:29 2015 +0800
Add SSL middleware to fix incorrect version host_url
The Manila API does not behave properly if it is behind an SSL
termination proxy. If this is the case, the host_url in version
resource are build using http protocol instead of https.
To handle to correct host_url with proxy, first, we should enable -Host in proxy so that Manila can get the right client
X-Forwarded
ip. Second, we should enable X-Forwarded-Proto, with the new SSL
middleware, Manila will get original protocol.
Change-Id: I2dac983481718e 6d639453e3f03f4 1baf8cea56d
Closes-Bug: #1384379