This page collects practical ways to run Chaos Proxy.
- Project examples: ../examples/README.md
- Presets: ../presets
target: "http://localhost:4000"
port: 5000
global:
- latency: 50
routes:
"GET /users/:id":
- failNth:
n: 3
status: 500
body: "Every third request fails"See hot-reload.md for the full endpoint reference and curl examples.
npx chaos-proxy --config presets/mobile-3g.yamlTo combine presets, merge their global arrays into one config file and keep middleware in intended execution order.