-
-
Save DoCode/c8a6afecb7b5235ef802 to your computer and use it in GitHub Desktop.
set x-forwarded-ssl correctly (nginx, http+https in the same config)
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
| 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