summaryrefslogtreecommitdiff
path: root/nova/api/openstack/wsgi.py
diff options
context:
space:
mode:
authorRadomir Dopieralski <openstack@sheep.art.pl>2015-07-28 12:54:20 +0200
committerRadomir Dopieralski <openstack@sheep.art.pl>2015-08-03 08:50:45 +0200
commitab35779238658ad8595e383618ca28a191c1085d (patch)
tree92d0ef5b84f2db06b13e1d0e532704e266f663e6 /nova/api/openstack/wsgi.py
parent4a96b90623ffd3814131b37c622e75e4dae812fa (diff)
downloadnova-ab35779238658ad8595e383618ca28a191c1085d.tar.gz
Handle SSL termination proxies for version list
Return correct scheme in version URLs if service behind an SSL termination proxy. This is done by adding a new configuration option, secure_proxy_ssl_header, which, when defined, makes the wsgi application take the host_url scheme from that header. By default, when this option is not specified, there is no difference in behavior. The intention is to configure any ssl-decrypting proxy to set that header, so that nova-api knows which protocol to use in the URLs in response. This patch is largely based on https://review.openstack.org/#/c/132235/18 DocImpact Closes-Bug: #1384379 Change-Id: I27ba166902ecc19c9b7fff2ee7f3bf733885efe1
Diffstat (limited to 'nova/api/openstack/wsgi.py')
-rw-r--r--nova/api/openstack/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index 5c65171695..f6a8a20451 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -83,7 +83,7 @@ def get_media_map():
return dict(_MEDIA_TYPE_MAP.items())
-class Request(webob.Request):
+class Request(wsgi.Request):
"""Add some OpenStack API-specific logic to the base webob.Request."""
def __init__(self, *args, **kwargs):