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 v4v6
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 accept-proxy
default_backend serv151_http
frontend fe_https
bind *:443 accept-proxy
default_backend serv151_https
frontend def_http
bind *:6688 accept-proxy
mode tcp
default_backend serv151_http
frontend def_https
bind *:6689 accept-proxy
default_backend serv151_https
backend serv151_http
server nginx 192.168.10.151:80 send-proxy-v2 check
backend serv151_https
server nginx 192.168.10.151:443 send-proxy-v2 check