Sign inSign up

chimeradev/chtoxy

By chimeradev

Updated almost 11 years ago

Toxy proxy, configured to add latency to all http web requests

Image
0

489

chimeradev/chtoxy repository overview

Toxy proxy listens on port 3000, admin port is 9000, api key is 'CH405'.

Utilizes tinyproxy as a locally listening http proxy to forward all requests to the internet.

Find the Dockerfile and default config here: https://github.com/derFunk/docker_toxy

The static configuration is:

  .poison(poisons.bandwidth({ bps: 10240 }))
  .withRule(rules.probability(60))

proxy
  .poison(toxy.poisons.latency({ max: 1000, min: 100 }))
  .withRule(rules.probability(30))

proxy
  .poison(toxy.poisons.inject({
          code: 503,
          body: '{"error": "toxy injected error"}',
          headers: {'Content-Type': 'application/json'}
        }))
  .withRule(rules.probability(8))


proxy.all('/*')

If you want to edit it, change /chimera.js and kill the node.js process (usually pid #6 after you start the container).

Tag summary

Content type

Image

Digest

sha256:cb8d68afa

Size

193.9 MB

Last updated

almost 11 years ago

docker pull chimeradev/chtoxy