Add a configuration flag for external TLS termination

This is necessary to ensure that we use the correct scheme when conducting health checks, setting cookies, etc.

Fixes #1865
This commit is contained in:
Joseph Schorr 2016-09-22 18:28:57 -04:00
parent bfaa46c499
commit 310eded8e6
2 changed files with 10 additions and 1 deletions

View file

@ -77,6 +77,11 @@ class DefaultConfig(object):
DB_TRANSACTION_FACTORY = create_transaction
# If set to true, TLS is used, but is terminated by an external service (such as a load balancer).
# Note that PREFERRED_URL_SCHEME must be `https` when this flag is set or it can lead to undefined
# behavior.
EXTERNAL_TLS_TERMINATION = False
# If true, CDN URLs will be used for our external dependencies, rather than the local
# copies.
USE_CDN = True