sunrisemovement / devops

This repo is obsolete. A maintained version of this code lives at https://github.com/maximum-ethics/linode-caddy
GNU Affero General Public License v3.0
2 stars 1 forks source link

Automate Caddy config #14

Open skyfaller opened 4 years ago

skyfaller commented 4 years ago

I currently think this involves using more templating (and/or perhaps blockinfile) to manage the Caddyfile, but it could theoretically use a different file format, or even dynamically configure the running server using its RESTful JSON API.

At any rate, we really should stop editing the Caddyfile by hand, but I've intentionally been waiting until the final Caddy2 release to attempt automation, so that I am confident that the format won't change.

skyfaller commented 4 years ago

Caddy v2 has an official stable release, so now's a good time to start on this.