Fair-p is an HTTP(S) proxy with throughput guarantees.
- Ensure Docker is installed on your system. Follow this guide for Ubuntu.
- Docker Compose should be included (modern Docker versions have it built-in).
Setup proper linux limits (optional)
Run this script.
Clone the Repository:
git clone https://github.com/galqiwi/fair-p.git
Configure docker-compose.yml:
- Max Throughput: Update the --max-throughput value in docker-compose.yml to the maximum throughput (in MB/s) you want the proxy to handle.
- Port: Optionally, you can change the proxy's port by modifying the --port parameter.
Using Docker:
docker compose build && docker compose up -d
Using Go (without Docker):
Prerequisites:
- Go 1.22.1 or later
Build and run:
go build -o fair-p ./cmd/passer
./fair-p --port 8080 --max-throughput 100Your Fair-p proxy should now be up and running!