Ensure we can serve images securely locally

This commit is contained in:
Eliot Berriot 2018-06-02 09:17:32 +02:00
parent 5ebaa884c1
commit 14c8073e26
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 5 additions and 4 deletions

View file

@ -303,6 +303,9 @@ ROOT_URLCONF = 'config.urls'
WSGI_APPLICATION = 'config.wsgi.application'
ASGI_APPLICATION = "config.routing.application"
# This ensures that Django will be able to detect a secure connection
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# AUTHENTICATION CONFIGURATION
# ------------------------------------------------------------------------------
AUTHENTICATION_BACKENDS = (