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