Caddy #

Simple ACME DNS challenges with Caddy #

I just want to quickly mirror the idea from my traefik reverse-proxy with ACME certificates for Caddy as well because I needed that recently. The overall setup followed the manual installation method and I configured the required Hetzner token via a systemd override.conf, as suggested.

  # disable redirects to stop trying to bind to :80
  auto_https disable_redirects

  # use letsencrypt


# configure your hostname here

# enable the file browser
root * /var/www/html/
file_server browse

tls {

  # use specific resolver for split-horizon dns setups

  # with token in environ
  dns hetzner {env.HETZNER_API_TOKEN}