https when X-Forwarded-Protocol==https

This commit is contained in:
Thomas NOËL 2013-09-17 12:58:05 +02:00
parent 8471c5b6cf
commit 9607998bb5
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ DATABASES = {
}
}
# the proxy can add a custom HTTP header that tells Django whether the request
# came in via HTTPS
# https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []