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

54 lines
1.0 KiB
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 192.168.1.201:3306 check
frontend ftp_control
bind *:21
default_backend ftp_servers
backend ftp_servers
mode tcp
balance roundrobin
server ftp2 ftp-server-2:21 check
server ftp2b ftp-server-2b:21 check
frontend ftp_passive_2
bind *:40000-40249
mode tcp
default_backend ftp_passive_2_backend
backend ftp_passive_2_backend
mode tcp
server ftp2 ftp-server-2:40000 check port 21
frontend ftp_passive_2b
bind *:40250-40499
mode tcp
default_backend ftp_passive_2b_backend
backend ftp_passive_2b_backend
mode tcp
server ftp2b ftp-server-2b:40250 check port 21