Skip to content

pgiles/toxiproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create a proxy for any web address

BE SURE TO PASS A Host HEADER

After starting this container:

docker run --rm -it -p 8474:8474 -p 3000-3120:3000-3120 \
	-v `pwd`:/etc/toxiproxy/ ghcr.io/shopify/toxiproxy -host 0.0.0.0 -config /etc/toxiproxy/toxiproxy.json

Test an HTTP request

curl -H "Host: ifconfig.me" localhost:3000

You can then use the toxiproxy-cli to add another proxy using any exposed port (i.e. 3000, 3001...3120)

toxiproxy-cli c goog -l :3001 -u www.google.com:443

For TLS proxies, add to /etc/hosts:

127.0.0.1	proxied.google.com

About

Example of how I setup and use toxiproxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published