caddy-docker-proxy
caddy-docker-proxy copied to clipboard
Command/option to display raw Caddyfile (or the resulting JSON)
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
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:
Show current running caddyfile would be great for debugging.
using the logs, e.g. by running docker-compose logs caddy shows the compiled on-the-fly caddyfile.
I just added a brutish write to file - https://github.com/lucaslorentz/caddy-docker-proxy/pull/190/commits/3153b959eeb03a44fff6fe22faf1300a8f7e9712#r636694705 for debugging
Since https://github.com/lucaslorentz/caddy-docker-proxy/pull/385 we now save the current running caddyfile.