Web / Caddy Server Interview questions
What are the types of Caddy configuration formats?
Caddy's native, internal configuration language is JSON - every setting Caddy understands has a JSON representation. To avoid hand-writing JSON, Caddy ships config adapters that translate other formats into that JSON before Caddy loads it.
| Format | How it's used |
| JSON | Native format; loaded directly, supports every feature and module option. |
| Caddyfile | Default human-readable format; adapted to JSON automatically at startup. |
| nginx / caddyfile / json5 adapters | Community adapters that convert other config styles (e.g. nginx.conf) into Caddy JSON. |
You can preview the conversion yourself with caddy adapt --config Caddyfile, which prints the equivalent JSON without starting the server.
More Related questions...