MasterKale / Docker-Django

A complete Django setup, running in Docker
71 stars 27 forks source link

Add support for Cloudflare origin certificates in Nginx #10

Closed MasterKale closed 2 years ago

MasterKale commented 3 years ago

I'd like to document how to quickly add support for Cloudflare' SSL Origin Certificates to this setup (Dash > domain > SSL/TLS > Origin Server). The goal is to support Full (strict) mode to ensure encryption end-to-end:

Screen Shot 2021-05-28 at 10 38 48 AM

The current setup is fine for Flexible mode, but more encryption is always better.

MasterKale commented 2 years ago

Potential better idea: use Cloudflare Tunnel via this Docker image: https://hub.docker.com/r/cloudflare/cloudflared

MasterKale commented 2 years ago

PR #21 landed adding support for Cloudflare tunnels so I'm going to go ahead and close this.