소스 검색

Add SECURE_PROXY_SSL_HEADER to settings.py.

Andrew Klopper 8 년 전
부모
커밋
ab3bf99ebc
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      sms_feed/settings.py

+ 4 - 0
sms_feed/settings.py

163
     messages.ERROR: 'danger'
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
 from settings_local import *
170
 from settings_local import *