blob: 2cbd4175841790e3de7c8572d5d46dfb38fa4233 [file] [log] [blame]
Alexander Liu2a54bb72019-05-22 19:44:48 +08001global
2 log /dev/log local0
3 log /dev/log local1 notice
4 stats timeout 30s
5
6defaults
7 log global
8 mode http
9 option httplog
10 option dontlognull
11 timeout connect 5000
12 timeout client 50000
13 timeout server 50000
14
15listen SMTP-20025
16 bind 0.0.0.0:20025
17 mode tcp
18 option tcplog
19 maxconn 2000
20 timeout connect 5000
21 timeout client 50000
22 timeout server 50000
23 option tcp-check
24 server SMTPS1 192.0.2.1:25 check inter 30000 fastinter 1000
25 server SMTPS2_Via_SocksProxy1 192.0.2.2:25 socks4 127.0.0.1:1080 check-via-socks4 check inter 30000 fastinter 1000 backup
26
27listen SSL-20080
28 bind 0.0.0.0:20080
29 mode tcp
30 option tcplog
31 maxconn 2000
32 timeout connect 5000
33 timeout client 50000
34 timeout server 50000
35 option tcp-check
36 server HTTPS1_Via_SocksProxy1 192.0.2.1:443 ssl verify none socks4 127.0.0.1:1080 check inter 30000 fastinter 1000
37 server HTTPS2 192.0.2.2:443 ssl verify none check inter 30000 fastinter 1000 backup
38
39# HAProxy web ui
40listen stats
41 bind 0.0.0.0:20936
42 mode http
43 log global
44
45 maxconn 10
46 timeout client 100s
47 timeout server 100s
48 timeout connect 100s
49 timeout queue 100s
50
51 stats enable
52 stats uri /haproxy?stats
53 stats realm HAProxy\ Statistics
54 stats admin if TRUE
55 stats show-node