caddy-docker-proxy icon indicating copy to clipboard operation
caddy-docker-proxy copied to clipboard

Command/option to display raw Caddyfile (or the resulting JSON)

Open lucaslorentz opened this issue 5 years ago • 7 comments

I'd love to see some command/option that would just spit out the raw Caddyfile (or the resulting JSON) it would generate from a set of labels (or something similar to that idea), it would help when developing/making changes.

_Originally posted by @francislavoie in https://github.com/render_node/MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NDEzMTYwMDk4/pull_request_reviews/more_threads

lucaslorentz avatar May 18 '20 23:05 lucaslorentz

I think this would be easy to build with the parseLabelsFromString() function I wrote for tests. Would just need a command or something that takes a file of labels as input and spits out the Caddyfile :+1:

francislavoie avatar May 19 '20 14:05 francislavoie

Show current running caddyfile would be great for debugging.

pwFoo avatar May 19 '20 21:05 pwFoo

using the logs, e.g. by running docker-compose logs caddy shows the compiled on-the-fly caddyfile.

torwag avatar Jul 22 '20 01:07 torwag

I just added a brutish write to file - https://github.com/lucaslorentz/caddy-docker-proxy/pull/190/commits/3153b959eeb03a44fff6fe22faf1300a8f7e9712#r636694705 for debugging

SvenDowideit avatar May 21 '21 07:05 SvenDowideit

Since https://github.com/lucaslorentz/caddy-docker-proxy/pull/385 we now save the current running caddyfile.

lucaslorentz avatar Nov 23 '22 20:11 lucaslorentz