global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 20000
user haproxy
group haproxy
daemon
tune.ssl.default-dh-param 2048
defaults
log global
mode tcp
option dontlognull
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
listen stats
bind :8000
mode http
http-request use-service prometheus-exporter if { path /metrics }
stats enable
stats uri /stats
stats realm HAProxy-04\ Statistics
stats auth admin:admin
stats admin if TRUE
frontend fe_http
bind *:80
default_backend be_http
frontend fe_https
bind *:443
default_backend be_https
backend be_http
server haproxy102 192.168.10.102:80 send-proxy-v2 check
backend be_https
server haproxy102 192.168.10.102:443 send-proxy-v2 check