From d3baa3d39adb82809b62f18b1cb5d72c727969dc Mon Sep 17 00:00:00 2001 From: zhurong Date: Mon, 23 Oct 2017 16:39:09 +0800 Subject: [PATCH] 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 --- etc/murano/murano-cfapi-paste.ini | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/etc/murano/murano-cfapi-paste.ini b/etc/murano/murano-cfapi-paste.ini index 281ed56ea..8b3e01b50 100644 --- a/etc/murano/murano-cfapi-paste.ini +++ b/etc/murano/murano-cfapi-paste.ini @@ -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