Add http_proxy_to_wsgi to api_paste
This sets up the HTTPProxyToWSGI middleware in front of Cloudkitty. The purpose of this middleware is to set up the request URL correctly in case there is a proxy in front of cloudkitty. Change-Id: I8bff0002be65720a268d39c25fb909b3d1187560
This commit is contained in:
parent
772ba65266
commit
da42758a8d
@ -1,5 +1,5 @@
|
||||
[pipeline:main]
|
||||
pipeline = cors request_id authtoken ck_api_v1
|
||||
pipeline = cors http_proxy_to_wsgi request_id authtoken ck_api_v1
|
||||
|
||||
[app:ck_api_v1]
|
||||
paste.app_factory = cloudkitty.api.app:app_factory
|
||||
@ -14,3 +14,7 @@ paste.filter_factory = oslo_middleware:RequestId.factory
|
||||
[filter:cors]
|
||||
paste.filter_factory = oslo_middleware.cors:filter_factory
|
||||
oslo_config_project = cloudkitty
|
||||
|
||||
[filter:http_proxy_to_wsgi]
|
||||
paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory
|
||||
oslo_config_project = cloudkitty
|
||||
|
@ -5,6 +5,7 @@ namespace = oslo.concurrency
|
||||
namespace = oslo.db
|
||||
namespace = oslo.log
|
||||
namespace = oslo.messaging
|
||||
namespace = oslo.middleware.http_proxy_to_wsgi
|
||||
namespace = oslo.middleware.cors
|
||||
namespace = oslo.policy
|
||||
namespace = keystonemiddleware.auth_token
|
||||
namespace = keystonemiddleware.auth_token
|
Loading…
Reference in New Issue
Block a user