Override the configuration file used by Caddy. By default, NixOS generates one automatically.
The configuration file is exposed at /etc/caddy/caddy_config.
Declarations
Type
path
Default
"A Caddyfile automatically generated by values from services.caddy.*"
Example
pkgs.writeText "Caddyfile" ''
example.com
root * /var/www/wordpress
php_fastcgi unix//run/php/php-version-fpm.sock
file_server
'';