Skip to content

Commit 86445d7

Browse files
committed
Redirect http to https
1 parent 0379d11 commit 86445d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

courtbot/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,7 @@
138138
os.path.join(BASE_DIR, 'static'),
139139
]
140140

141+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
142+
SECURE_SSL_REDIRECT = True
143+
141144
django_heroku.settings(locals())

0 commit comments

Comments
 (0)