settings: define SECURE_PROXY_SSL_HEADER
authorFrédéric Péters <fpeters@0d.be>
Fri, 3 Jan 2020 15:50:54 +0000 (16:50 +0100)
committerFrédéric Péters <fpeters@0d.be>
Fri, 3 Jan 2020 15:50:54 +0000 (16:50 +0100)
panikdb/settings.py

index 88b242a..7f32673 100644 (file)
@@ -72,6 +72,8 @@ STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
 # Example: "http://example.com/static/", "http://static.example.com/"
 STATIC_URL = '/static/'
 
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+
 CKEDITOR_UPLOAD_PATH = 'uploads/'
 CKEDITOR_UPLOAD_PREFIX = '/media/uploads/'