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
This commit is contained in:
parent
8f91077493
commit
67121813d5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user