Created
December 26, 2018 11:41
-
-
Save rrei/9dbf9f1d6e0cd7daeae174562645c8e2 to your computer and use it in GitHub Desktop.
Django settings for reverse-proxy scenarios
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE_X_FORWARDED_HOST = True | |
USE_X_FORWARDED_PORT = True | |
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment