Use http_proxy_to_wsgi middleware
This commit enables to handle HTTP_X_FORWARDED_PROTO by using http_proxy_to_wsgi middleware of oslo.middleware. Change-Id: I6a11c8470205ca78bdb027fa9a06fec3acda33ad Closes-Bug: #1590608
This commit is contained in:
parent
d55c3dedea
commit
583d5cd428
@ -7,7 +7,7 @@ use = call:trove.common.wsgi:versioned_urlmap
|
||||
paste.app_factory = trove.versions:app_factory
|
||||
|
||||
[pipeline:troveapi]
|
||||
pipeline = cors faultwrapper osprofiler authtoken authorization contextwrapper ratelimit extensions troveapp
|
||||
pipeline = cors http_proxy_to_wsgi faultwrapper osprofiler authtoken authorization contextwrapper ratelimit extensions troveapp
|
||||
#pipeline = debug extensions troveapp
|
||||
|
||||
[filter:extensions]
|
||||
@ -41,3 +41,6 @@ paste.app_factory = trove.common.api:app_factory
|
||||
#Add this filter to log request and response for debugging
|
||||
[filter:debug]
|
||||
paste.filter_factory = trove.common.wsgi:Debug
|
||||
|
||||
[filter:http_proxy_to_wsgi]
|
||||
use = egg:oslo.middleware#http_proxy_to_wsgi
|
||||
|
@ -7,7 +7,7 @@ use = call:trove.common.wsgi:versioned_urlmap
|
||||
paste.app_factory = trove.versions:app_factory
|
||||
|
||||
[pipeline:troveapi]
|
||||
pipeline = faultwrapper authtoken authorization contextwrapper extensions ratelimit troveapp
|
||||
pipeline = faultwrapper http_proxy_to_wsgi authtoken authorization contextwrapper extensions ratelimit troveapp
|
||||
#pipeline = debug extensions troveapp
|
||||
|
||||
[filter:extensions]
|
||||
@ -42,3 +42,6 @@ paste.app_factory = trove.common.api:app_factory
|
||||
#Add this filter to log request and response for debugging
|
||||
[filter:debug]
|
||||
paste.filter_factory = trove.common.wsgi:Debug
|
||||
|
||||
[filter:http_proxy_to_wsgi]
|
||||
use = egg:oslo.middleware#http_proxy_to_wsgi
|
||||
|
@ -310,3 +310,13 @@ api_strategy = trove.common.strategies.cluster.experimental.vertica.api.VerticaA
|
||||
# Indicate which header field names may be used during the actual request.
|
||||
# (list value)
|
||||
#allow_headers = X-Auth-Token, X-Identity-Status, X-Roles, X-Service-Catalog, X-User-Id, X-Tenant-Id, X-OpenStack-Request-ID
|
||||
|
||||
[oslo_middleware]
|
||||
|
||||
#
|
||||
# From oslo.middleware
|
||||
#
|
||||
|
||||
# Whether the application is behind a proxy or not. This determines if the
|
||||
# middleware should parse the headers or not. (boolean value)
|
||||
#enable_proxy_headers_parsing = false
|
||||
|
Loading…
Reference in New Issue
Block a user