This commit is contained in:
Adolfo Delorenzo 2023-01-21 23:05:27 +00:00
parent 1de2a25801
commit 62d47784f5
1 changed files with 31 additions and 0 deletions

31
haproxy.cfg Normal file
View File

@ -0,0 +1,31 @@
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