Support http_proxy_to_wsgi

Add http_proxy_to_wsgi to api-paste.ini to support
HTTP_X_FORWARDED_PROTO header
Please refer to
https://git.openstack.org/cgit/openstack/trove/commit/?id=583d5cd4283895c10e7cac92a8498b6b01676e5f

Change-Id: I102d2b1920f169e2ab1967042028541d313bf6c7
Closes-bug: #1590608
This commit is contained in:
Seyeong Kim 2018-01-12 20:37:39 +09:00
parent 7a6e01d177
commit 0a97e78084
1 changed files with 4 additions and 1 deletions

View File

@ -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