Caddy and Let’s Encrypt

2016/04/01

Tags: caddy docker lets-encrypt til

Note: this is a follow-up to my earlier post on setting up Caddy with Docker, which is here.

I’ve just enabled Caddy’s Automatic HTTPS function, which leverages Let’s Encrypt to generate a key and get a signed certificate as soon as the server starts up. It’s free and simple. Awesome!

I was able to figure this out by reading the official documetation on Automatic HTTPS1 and Abiola Ibrahim’s example Dockerfile for Caddy, which included a nice section on how to persist the .caddy directory2.