mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 02:18:08 +00:00
Set SECURE_PROXY_SLL_HEADER if WWW_SCHEME is https
Django uses SECURE_PROXY_SSL_HEADER to know if we're on https for generating absolute urls, which are used by djangorestframework
This commit is contained in:
parent
86471956ae
commit
597b9555b2
@ -92,6 +92,9 @@ STATICFILES_FINDERS = (
|
||||
'compressor.finders.CompressorFinder',
|
||||
)
|
||||
|
||||
if os.environ.get('WWW_SCHEME') == 'https':
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
# Make this unique, and don't share it with anybody.
|
||||
SECRET_KEY = os.environ.get(
|
||||
'DJANGO_SECRET_KEY', '2FL6ORhHwr5eX34pP9mMugnIOd3jzVuT45f7w430Mt5PnEwbcJgma0q8zUXNZ68A')
|
||||
|
Loading…
x
Reference in New Issue
Block a user