forked from zhaow-de/rotating-tor-http-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haproxy.cfg
50 lines (46 loc) · 895 Bytes
/
haproxy.cfg
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
43
44
45
46
47
48
49
50
global
log stdout format raw local0
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 1024
user haproxy
group haproxy
defaults
mode http
log global
log-format "%ST %B %{+Q}r"
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 1024
listen stats
bind 0.0.0.0:4444
mode http
log global
maxconn 30
timeout client 100s
timeout server 100s
timeout connect 100s
timeout queue 100s
stats enable
stats hide-version
stats refresh 30s
stats show-desc
stats show-legends
stats show-node
stats uri /
frontend main
bind 0.0.0.0:3128
default_backend privoxy
mode http
backend privoxy
balance roundrobin