{ "admin": { "listen": ":2019" }, "apps": { "http": { "servers": { "example": { "listen": [":8080"], "routes": [ { "handle": [ { "handler": "static_response", "status_code": 200, "headers": { "Content-Type": ["text/html"] }, "body": "
This is a Rust-based reverse proxy server compatible with Caddy.
" } ] } ] }, "proxy_example": { "listen": [":8081"], "routes": [ { "match": [ { "matcher": "path", "paths": ["/api/*"] } ], "handle": [ { "handler": "reverse_proxy", "upstreams": [ { "dial": "httpbin.org:80" } ], "load_balancing": { "selection_policy": { "policy": "round_robin" } } } ] }, { "handle": [ { "handler": "file_server", "root": "./public", "browse": true } ] } ] } } } } }