MyNixOS website logo
option

services.caddy.dataDir

The data directory for caddy.

If left as the default value this directory will automatically be created before the Caddy server starts, otherwise you are responsible for ensuring the directory exists with appropriate ownership and permissions. Caddy v2 replaced CADDYPATH with XDG directories. See https://caddyserver.com/docs/conventions#file-locations.
Declarations
Type
path
Default
"/var/lib/caddy"