haproxy-adr/haproxy.cfg

32 lines
615 B
INI

global
log 127.0.0.1 local2
pidfile /var/run/haproxy.pid
maxconn 1024
daemon
defaults
timeout connect 5000
timeout client 50000
timeout server 50000
frontend ft_rtpm
bind *:1935 name rtmp
mode tcp
maxconn 600
default_backend bk_rtmp
backend bk_rtmp
mode tcp
balance roundrobin
server fra1 74.220.30.244:31935 check maxconn 200 weight 10
server lon1 74.220.20.222:31935 check maxconn 200 weight 10
server nyc1 212.2.242.190:31935 check maxconn 200 weight 10
listen stats
bind :9000
stats enable
mode http
stats uri /stats
stats hide-version
stats realm HAProxy\ Statistics