add reverse proxy adoption

This commit is contained in:
Götz 2017-10-01 02:11:53 +02:00
parent 09b95ab3d9
commit db0066f3b5

View File

@ -158,3 +158,7 @@ STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
# Setup support for proxy headers
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')