-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yml
42 lines (38 loc) · 1.3 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
proxy_file: "proxies.txt"
file_watch: true # watch for file changes and reload proxies
proxy:
port: 8080 # proxy server port
authentication:
enabled: false # enable basic authentication
username: "admin"
password: "admin"
rotation:
method: "random" # random, roundrobin, least_conn, time_based
time_based:
interval: 120 # seconds
remove_unhealthy: true # remove unhealthy proxies from rotation
fallback: true # recommended for continuous operation in case of proxy failures
fallback_max_retries: 10 # number of retries for fallback. if this is reached, the response will be returned "bad gateway"
timeout: 30 # seconds
retries: 2 # number of retries to get a healthy proxy
rate_limit:
enabled: false # enable rate limiting
interval: 1 # seconds
max_requests: 100 # maximum number of requests per interval
api:
enabled: true # enable API endpoints
port: 8081 # API server port
healthcheck:
output:
method: "file" # file, stdout
file: "healthcheck.txt" # save healthy proxies to this file
timeout: 30 # seconds
workers: 20 # number of workers to check proxies
url: "https://api.ipify.org" # only GET method is supported
status: 200
headers:
- "Content-Type: application/json"
logging:
stdout: true
file: "rota.log"
level: "info"