Updated murano-cfapi-paste.ini with http_proxy_to_wsgi

Murano cfapi used to have a custom, always-enabled ssl middleware, to parse
X-Forwarded-Proto header, to let murano cfapi work correctly behind an SSL
proxy. There is now an oslo middleware, that does the
same thing, but more thoroughly.
This commit replaces custom implementation with oslo one.

murano-paste.ini has implementated in this commit:
I5444542b878434fb656e19b12d0f6e71df1ab95f

Change-Id: I701f9d2496935e71bf847955c43fa239474bc38e
This commit is contained in:
zhurong 2017-10-23 16:39:09 +08:00
parent f73c89d25e
commit d3baa3d39a
1 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
[pipeline:cloudfoundry]
pipeline = cors request_id ssl ext_context authtoken context cloudfoundryapi
pipeline = cors http_proxy_to_wsgi request_id ext_context authtoken context cloudfoundryapi
[filter:context]
paste.filter_factory = murano.api.middleware.context:ContextMiddleware.factory
@ -19,12 +19,13 @@ paste.filter_factory = murano.api.middleware.fault:FaultWrapper.factory
[filter:request_id]
paste.filter_factory = oslo_middleware.request_id:RequestId.factory
[filter:ssl]
paste.filter_factory = murano.api.middleware.ssl:SSLMiddleware.factory
[filter:ext_context]
paste.filter_factory = murano.api.middleware.ext_context:ExternalContextMiddleware.factory
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = murano
[filter:http_proxy_to_wsgi]
paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory
oslo_config_project = murano