Skip to content

Commit f133fed

Browse files
committed
Forward to HTTPS
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent af9a06d commit f133fed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vulnerablecode/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
# WARNING: Set this to False in production
5555
STAGING = env.bool("STAGING", default=True)
5656

57+
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
58+
USE_X_FORWARDED_HOST = True
59+
5760
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
5861
EMAIL_HOST = env.str("EMAIL_HOST", default="")
5962
EMAIL_USE_TLS = True

0 commit comments

Comments
 (0)