services.caddy.dataDir
NixOS option
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.
type: absolute pathDefault
declared in: nixos/modules/services/web-servers/caddy/default.nixView source on NixOS/nixpkgs →"/var/lib/caddy"