Merge "Add capability to parse forward headers"
This commit is contained in:
@@ -9,6 +9,7 @@ namespace = oslo.concurrency
|
|||||||
namespace = oslo.db
|
namespace = oslo.db
|
||||||
namespace = oslo.log
|
namespace = oslo.log
|
||||||
namespace = oslo.messaging
|
namespace = oslo.messaging
|
||||||
|
namespace = oslo.middleware.http_proxy_to_wsgi
|
||||||
namespace = oslo.policy
|
namespace = oslo.policy
|
||||||
namespace = oslo.reports
|
namespace = oslo.reports
|
||||||
namespace = oslo.service.periodic_task
|
namespace = oslo.service.periodic_task
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
The ``http_proxy_to_wsgi`` middleware has been added to the api pipeline.
|
||||||
|
Now setting the ``[oslo_middleware] enable_proxy_headers_parsing`` option
|
||||||
|
to true enables parsing the HTTP headers set by forwarders, to detect
|
||||||
|
endpoint urls clients actually use.
|
||||||
|
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
from oslo_middleware import http_proxy_to_wsgi
|
||||||
from oslo_middleware import request_id
|
from oslo_middleware import request_id
|
||||||
import pecan
|
import pecan
|
||||||
|
|
||||||
@@ -56,6 +57,8 @@ def _wrap_app(app):
|
|||||||
|
|
||||||
app = request_id.RequestId(app)
|
app = request_id.RequestId(app)
|
||||||
|
|
||||||
|
app = http_proxy_to_wsgi.HTTPProxyToWSGI(app)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user