{ "apps": { "http": { "servers": { "static": { "listen": [ ":3000" ], "metrics": {}, "routes": [ { "match": [ { "path": [ "/inetmock/*" ] } ], "handle": [ { "handler": "reverse_proxy", "upstreams": [ { "dial": "gitea-http.gitea.svc.cluster.local:3000" } ], "rewrite": { "path_regexp": [ { "find": "^\\/inetmock", "replace": "/inetmock/inetmock" } ] } } ] }, { "match": [ { "path": [ "/" ] } ], "handle": [ { "handler": "rewrite", "path_regexp": [ { "find": ".*", "replace": "/docs/" } ] } ] }, { "handle": [ { "handler": "file_server", "root": "/usr/share/caddy", "index_names": [ "index.html" ] } ] } ] }, "metrics": { "listen": [ ":9100" ], "routes": [ { "handle": [ { "handler": "metrics" } ] } ] } } } } }