Caddy2 and json config

I am using docker container and i am wondering can you somehow load caddy.json on container start like Caddyfile without need to do api request with file?

You just need to specify the caddy.json file with the --config argument when running the container, with --adapter json (it defaults to json, so you can omit the adapter argument if you override the container’s CMD)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.