Sfoglia il codice sorgente

Add SECURE_PROXY_SSL_HEADER to settings.py.

Andrew Klopper 8 anni fa
parent
commit
ab3bf99ebc
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      sms_feed/settings.py

+ 4 - 0
sms_feed/settings.py

@@ -163,4 +163,8 @@ MESSAGE_TAGS = {
163 163
     messages.ERROR: 'danger'
164 164
 }
165 165
 
166
+# This should only be set if we are running behind a proxy server that always
167
+# sets this header and never allows it to be passed directly on from clients.
168
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
169
+
166 170
 from settings_local import *