I’m figuring it’s a plugin thing rather than. Core function.
But is anyone aware of a plugin that will read the current running config and present all of the reverse proxied sites.
I’m aware of dashboard apps like dashy, but I’m a bit too lazy for hand configuring things when I already have all my sores proxied via caddy. And seems logical that that would be the best source to feed a dashboard
You can output that to JSON/YAML/CSV, etc as an array of items too:
# This adds `-o` for output format and collects to array by wrapping with `[ ]`:
# Also uses `to_entries | .[].value` to iterate through all servers not just `srv0`
$ yq -p=json -o=json '[ to_entries | .[].value | .routes[].match[].host[] ]'
[
"another-example.test",
"example.test"
]