Skip to content

Instantly share code, notes, and snippets.

@rrei
Created December 26, 2018 11:41
Show Gist options
  • Save rrei/9dbf9f1d6e0cd7daeae174562645c8e2 to your computer and use it in GitHub Desktop.
Save rrei/9dbf9f1d6e0cd7daeae174562645c8e2 to your computer and use it in GitHub Desktop.
Django settings for reverse-proxy scenarios
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