You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Simple Proxy Rotator` - acts as an http(s) forward proxy rotator.
4
+
5
+
It uses [glider](https://github.com/nadoo/glider) to evenly requests to a list of configured proxies.
6
+
7
+
## Introduction
8
+
9
+
You have: a list of http(s) proxies bought from a provider
10
+
11
+
You need: to distribute http(s) requests amongst those proxies.
12
+
13
+
Solution: configure your clients to use `Simple Proxy Rotator` as the forward proxy, and it will distribute the requests in round robin mode amongst its configured proxies.
14
+
15
+
Additionally, `Simple Proxy Rotator` will check each proxy every 60 seconds and remove it from the pool in case of error.
16
+
17
+
## Setup
18
+
19
+
The forward proxy rotator is exposed on port `15000`.
20
+
21
+
The proxy list can be configured in two ways :
22
+
23
+
- Using an environment variable : `PROXY_LIST_URL`. The proxy list will be downloaded from the given URL.
24
+
- By mounting the list as a volume on `/app/proxy-list.txt`
25
+
26
+
The proxy list should have 1 proxy per line using the following format : `http://[username]:[password]@[host]:[port]`. Example
27
+
28
+
````
29
+
http://user1:password1@12.34.56.78:1111
30
+
http://user2:password2@98.76.54.32:2222
31
+
...
32
+
````
33
+
34
+
## Usage
35
+
36
+
### Start the container using a downloadable proxy list
37
+
38
+
````
39
+
docker run -p 1234:15000 -e PROXY_LIST_URL=https://gist.githubusercontent.com/you/private-gist-hash/raw/proxy-list.txt almathie/simple-proxy-rotator
40
+
````
41
+
42
+
### Start the container using a volume mounted proxy list
43
+
44
+
````
45
+
docker run -p 1234:15000 -v /path/to/proxy-list.txt:/app/proxy-list.txt almathie/simple-proxy-rotator
0 commit comments