From 6d14488b9e6c311224eed9e7dd2ad9f90053fa1e Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Fri, 2 Dec 2016 10:02:54 +0000 Subject: [PATCH] Update paste, policy and rootwrap configurations 2016-12-02 Change-Id: I119a44520bb5eabd6930f7be6936dd31b982f4d4 --- templates/api-paste.ini.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/api-paste.ini.j2 b/templates/api-paste.ini.j2 index ea3612b..5851c0f 100644 --- a/templates/api-paste.ini.j2 +++ b/templates/api-paste.ini.j2 @@ -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