Skip to content

Instantly share code, notes, and snippets.

@DoCode
Forked from m0n5t3r/gist:1006281
Created November 22, 2015 12:22
Show Gist options
  • Save DoCode/c8a6afecb7b5235ef802 to your computer and use it in GitHub Desktop.
Save DoCode/c8a6afecb7b5235ef802 to your computer and use it in GitHub Desktop.
set x-forwarded-ssl correctly (nginx, http+https in the same config)
set $ssl off;
if ($scheme = https) {
set $ssl on;
}
proxy_set_header X-Forwarded-Ssl $ssl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment