This Caddy plugin lets you configure Caddy with the Dhall configuration language.
The result of evaluating your Dhall document must be a valid Caddy JSON config.
Config adapter name: dhall
You can select this plugin on Caddy's download page.
Or, you can plug it in by building Caddy yourself with xcaddy:
$ xcaddy build --with github.com/mholt/dhall-adapter
Using this config adapter is the same as any other:
$ caddy run --config caddy.dhall --adapter dhall
The key is to specify --adapter dhall
on the command line or, if using Caddy's config API, Content-Type: application/dhall
.