3 ms·
Installing and configuring Caddy to serve a static site over HTTPS is dead easy, and probably less work than setting up Docker. Caddy has built-in support for
by codetrotter 8y ago
Installing and configuring Caddy to serve a static site over HTTPS is dead easy, and probably less work than setting up Docker.
Caddy has built-in support for Let’s Encrypt.
I use the dns module which required a little bit of extra work to enable because it’s not included by default but other than that it’s very simple like I said.
Here is the config file for one of my sites:
www.crusaders.pw {
root /var/www/pw.crusaders.www/
expires {
match .htm$ 4h
match /assets/.* 1y
}
tls {
dns cloudflare
}
}
crusaders.pw {
redir https://www.crusaders.pw{uri}
tls {
dns cloudflare
}
}
Then just stick the config file in a git repo.