chance-proxy
A tiny reverse proxy that disconnects users by chance.
Building
To build chance-proxy, you will need:
After ensuring you have installed all of the prerequisites, run the following commands to build chance-proxy:
git clone https://github.com/interrrp/chance-proxy
cd chance-proxy
go build -ldflags "-s -w" -o chance-proxy .
The executable will now be in the chance-proxy
directory. Good job! 😀👍
Docker
The Docker image is available at interrrp/chance-proxy
. Try it out:
docker run -it -p 8080:8080 -p 8081:8081 chance-proxy
You may also choose to build it manually:
docker build . -t interrrp/chance-proxy
Configuration
All configuration happens through environment variables or .env
.
Copy example.env
into .env
and change its contents as needed.
Examples
Listen on localhost:25566
and proxy to localhost:25565
chance-proxy -address localhost:25566 -target localhost:25565
Fail 90% of the time:
chance-proxy -failureChance 90
License
chance-proxy is licensed under the GNU General Public License 3.0 license.