I am currently using caddyfile and it is working fine. However I have a need for layer4 which doesn’t support caddyfile.
How do I convert to using json? Right now its using the /etc/caddy/caddyfile?
Also is there an easy caddfyfile to json convertor so that I don’t have to write out what is working in caddyfile to json. I can just add the layer4 items items that I need. I found an online tool but looks like it hasn’t been updated in a while because it didn’t work.
That question is ambiguous though. There’s many different ways of running Caddy. You might run it as a systemd service, or in Docker, or manually via the command line, etc. Each of those have a different answer for how to make changes to how you run it.
Like I said, filling the help topic template is a rule here. If you don’t fill it out, it wastes both our time, because I don’t know the information I need to answer your questions accurately, so I have to repeat with additional questions, meaning we have more roundtrips.
command: ["caddy", "run", "--config", "/etc/caddy/caddy-config.json"]
I ended up using the clip found here to determine how to switch from using caddyfile in docker to json.