Browse Source

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
changes/14/384414/3
Deepak 5 years ago
parent
commit
67121813d5
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      etc/magnum/api-paste.ini

+ 5
- 1
etc/magnum/api-paste.ini View File

@ -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…
Cancel
Save