mdserver-web/plugins/haproxy/conf/haproxy.conf

40 lines
685 B
Plaintext
Raw Permalink Normal View History

2022-08-28 23:32:29 -04:00
global
2022-08-28 10:50:17 -04:00
daemon
2023-11-18 07:28:17 -05:00
#一般情况下,可关闭
2023-11-18 07:40:54 -05:00
log 127.0.0.1 local0
2022-08-29 00:09:13 -04:00
pidfile /tmp/haproxy.pid
2022-08-28 23:32:29 -04:00
maxconn 4000
user haproxy
group haproxy
defaults
mode http
log global
option httplog
timeout connect 10s
timeout client 15s
timeout server 15s
listen stats
mode http
bind *:10800
stats enable
2023-11-18 07:29:32 -05:00
stats refresh 10
2022-08-28 23:32:29 -04:00
stats uri /haproxy
stats realm Haproxy\ Statistics
stats auth admin:admin
frontend http-in
bind *:1080
default_backend servers
option forwardfor
2023-11-08 04:58:46 -05:00
#option httpclose
option http-keep-alive
2022-08-28 23:32:29 -04:00
backend servers
balance roundrobin
2023-11-08 04:58:46 -05:00
server web1 0.0.0.0:9090 check inter 2000 rise 2 fall 5
2022-08-28 23:32:29 -04:00
2022-08-28 11:02:37 -04:00