3 ms·
Yep, there are several reasons, you can read about them here: https://github.com/caddyserver/caddy/wiki/v2:-FAQ#why-json-for-configuration-why-not-any-other-ser
by mholt 7y ago
Yep, there are several reasons, you can read about them here: https://github.com/caddyserver/caddy/wiki/v2:-FAQ#why-json-for-configuration-why-not-any-other-serialization-format https://github.com/caddyserver/caddy/wiki/v2:-FAQ#why-json-f...
Basically, it is highly interoperable and allows us to build config adapters on top of it, so you don't have to use JSON if you really don't want to. Most people use the Caddyfile. You can use YAML or TOML or CUE if you prefer those. Or heck, you can use your nginx config: https://github.com/caddyserver/nginx-adapter https://github.com/caddyserver/nginx-adapter