Back to DocsRecipe
Recipe: Caddyfile writer
Generate a production-ready Caddyfile from a simple JSON config. Meridian reads your routes, domains, and TLS policy, then writes the Caddyfile directly into your project root.
Quick start
meridian recipe caddyfile-writer \
--config caddy.json \
--output ./CaddyfileConfig schema
Drop a caddy.json at your project root with domains, upstreams, and optional TLS settings.
TLS policy
Set "tls": "internal" for self-signed certs on staging, or "tls": "letsencrypt" for production auto-renewal.
Output
Meridian writes a clean, commented Caddyfile. No templating engine required — just run the recipe and deploy.
Next: pair this with Recipe: Docker Compose generator for a full local dev stack.