Nginx + Cloudflare SSL

Now that cloudflare will support ssl on every domain you host with them, I wanted to get some of my domains setup to use it.

I didn't really get around to setting up the ssl cert on my side, but since cloudflare supports it, I wanted to redirect people to use it (as a convince, not a security factory) so setup this basic nginx config.

It blindly trusts the header, so it's possible to hit these domains without ssl, but I don't want to prevent it, just let those that want it in.

Figured it might be useful for others as well

Comments

arrow_back

Previous

GMing again

Next

Bash Remove Extension
arrow_forward
Gavin December 1989

Gavin Mogan

Hi. I'm Gavin. I'm a coder at Sauce Labs. At home I code, game, hang out, all the cool non robot things to do. #notarobot

Friends Sites