Files
proxmox-ha-setup/vm1/haproxy.cfg

54 lines
1020 B
INI

global
log stdout format raw local0
maxconn 4096
defaults
log global
mode tcp
timeout connect 5000ms
timeout client 300000ms
timeout server 300000ms
listen stats
bind *:8404
mode http
stats enable
stats uri /
stats refresh 5s
frontend mysql_frontend
bind *:3306
default_backend mysql_backend
backend mysql_backend
mode tcp
server mysql1 mysql:3306 check
frontend ftp_control
bind *:21
default_backend ftp_servers
backend ftp_servers
mode tcp
balance roundrobin
server ftp1 ftp-server-1:21 check
server ftp1b ftp-server-1b:21 check
frontend ftp_passive_1
bind *:40000-40249
mode tcp
default_backend ftp_passive_1_backend
backend ftp_passive_1_backend
mode tcp
server ftp1 ftp-server-1:40000 check port 21
frontend ftp_passive_1b
bind *:40250-40499
mode tcp
default_backend ftp_passive_1b_backend
backend ftp_passive_1b_backend
mode tcp
server ftp1b ftp-server-1b:40250 check port 21