MITMproxy route configuration
OptionalbackendHost?: stringBackend host that MITMproxy should forward to (optional, for documentation)
OptionalbackendPort?: numberBackend port that MITMproxy should forward to (optional, for documentation)
Host pattern to match (e.g., "api.example.com")
Optionalid?: stringRoute ID for Caddy (optional)
MITMproxy host (e.g., "localhost" or "mitmproxy-container")
OptionalmitmproxyPort?: numberMITMproxy proxy port (default: 8080)
Optionalpriority?: numberRoute priority (optional)
Caddy route configured to forward through MITMproxy
Build a route that forwards traffic through MITMproxy for inspection
This is a convenience function that creates a route pointing to a MITMproxy instance running in reverse proxy mode. Use this to transparently intercept and inspect HTTP traffic for debugging without modifying client or backend code.