Skip to content

Instantly share code, notes, and snippets.

@victorono
Created July 2, 2014 21:41
Show Gist options
  • Select an option

  • Save victorono/4a5b497ca9686d52af73 to your computer and use it in GitHub Desktop.

Select an option

Save victorono/4a5b497ca9686d52af73 to your computer and use it in GitHub Desktop.
SSL behind an Nginx Reverse Proxy in Django
proxy_set_header X-Forwarded-Protocol $scheme;
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment