Add support for Werkzeug ProxyFix middleware (#1150)

Add an ENABLE_PROXY_FIX config param.  When set to True, insert the Werkzeug ProxyFix
middleware.  This middleware extracts and applies the X-Forwarded-* headers that are
inserted by common proxies and load balancers.  Fixes #1139.
This commit is contained in:
Bob Ziuchkovski
2016-09-21 04:24:15 +09:00
committed by Maxime Beauchemin
parent 1ce8acc154
commit d15a212e64
3 changed files with 11 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ load balancer knows if your caravel instance is running. This is provided
at ``/health`` which will return a 200 response containing "OK" if the
webserver is running.
If the load balancer is inserting X-Forwarded-For/X-Forwarded-Proto headers, you
should set `ENABLE_PROXY_FIX = True` in the caravel config file to extract and use
the headers.
Configuration
-------------