Default /etc/caddy/Caddyfile does not pass validation
This is a really minor bug, but would be nice to be fixed in order to avoid one harmless warning:
[root@deimos conf.d]# caddy fmt --diff ../Caddyfile
# The Caddyfile is an easy way to configure your Caddy web server.
#
# https://caddyserver.com/docs/caddyfile
#
# The configuration below serves a welcome page over HTTP on port 80.
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace the line below with your
# domain name.
#
# https://caddyserver.com/docs/caddyfile/concepts#addresses
-
{
# Restrict the admin interface to a local unix file socket whose directory
# is restricted to caddy:caddy. By default the TCP socket allows arbitrary
Error: ../Caddyfile:12: Caddyfile input is not formatted; Tip: use '--overwrite' to update your Caddyfile in-place instead of previewing it. Consult '--help' for more options
The fix would require the empty line (12) to be removed. Bug exists in caddy 2.10.0-1