my json (unformatted as it’s too big for a message):
$ curl localhost:2019/config/
{“apps”:{“http”:{“servers”:{“srv0”:{“automatic_https”:{“disable”:true},“listen”:[":80"],“routes”:[{“group”:“group1”,“handle”:[{“handler”:“vars”,“root”:"/opt/ivt/photography"}],“match”:[{“path”:["/files/"]}]},{“group”:“group1”,“handle”:[{“handler”:“vars”,“root”:"/opt/ivt/apps/6.0.0/packages/client/spa"}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/console_socket",“replace”:"/console/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3001”}]}]}]}],“match”:[{“path”:["/console_socket/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/web_app_socket",“replace”:"/web/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3001”}]}]}]}],“match”:[{“path”:["/web_app_socket/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/liveview",“replace”:"/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3004”}]}]}]}],“match”:[{“path”:["/liveview/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/weather",“replace”:"/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3010”}]}]}]}],“match”:[{“path”:["/weather/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/archive",“replace”:"/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3003”}]}]}]}],“match”:[{“path”:["/archive/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/alarms",“replace”:"/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3002”}]}]}]}],“match”:[{“path”:["/alarms/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“rewrite”,“uri_substring”:[{“find”:"/ptz",“replace”:"/socket.io"}]}]},{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3006”}]}]}]}],“match”:[{“path”:["/ptz/"]}]},{“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“headers”:{“request”:{“set”:{“X-Forwarded-Proto”:["{http.request.scheme}"],“X-Real-Ip”:["{http.request.remote.host}"]}}},“upstreams”:[{“dial”:“localhost:3001”}]}]}]}],“match”:[{“path”:["/*"]}]},{“handle”:[{“handler”:“file_server”,“hide”:[“Caddyfile”]}]}]}}},“tls”:{“automation”:{“policies”:[{“issuer”:{“module”:“internal”}}]}}},“logging”:{“logs”:{“default”:{“level”:“DEBUG”}}}}