From 67121813d5c89bb5fca94008264146117530fd41 Mon Sep 17 00:00:00 2001 From: Deepak Date: Mon, 10 Oct 2016 16:26:43 +0530 Subject: [PATCH] Add http_proxy_to_wsgi to api-paste This sets up the HTTPProxyToWSGI middleware in front of magnum. The purpose of thise middleware is to set up the request URL correctly in case there is a proxy. Closes-Bug: #1590608 Change-Id: I3f22716575af96aea884bd481c023d394a0b00a5 --- etc/magnum/api-paste.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/magnum/api-paste.ini b/etc/magnum/api-paste.ini index 68f3b25b9a..67aab9d238 100644 --- a/etc/magnum/api-paste.ini +++ b/etc/magnum/api-paste.ini @@ -1,5 +1,5 @@ [pipeline:main] -pipeline = cors healthcheck request_id authtoken api_v1 +pipeline = cors healthcheck http_proxy_to_wsgi request_id authtoken api_v1 [app:api_v1] paste.app_factory = magnum.api.app:app_factory @@ -19,3 +19,7 @@ oslo_config_project = magnum paste.filter_factory = oslo_middleware:Healthcheck.factory backends = disable_by_file disable_by_file_path = /etc/magnum/healthcheck_disable + +[filter:http_proxy_to_wsgi] +paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory +oslo_config_project = magnum