Files
madbase/autobase-haproxy.cfg
Vlad Durnea a66d908eff
Some checks failed
CI / podman-build (push) Has been cancelled
CI / rust (push) Has been cancelled
chore: full stack stability and migration fixes, plus react UI progress
2026-03-18 09:01:38 +02:00

43 lines
963 B
INI

# Autobase HAProxy Configuration
global
maxconn 100
log stdout local0
stats timeout 30s
defaults
log global
mode tcp
option tcplog
retries 3
timeout connect 5s
timeout client 30m
timeout server 30m
listen primary
bind *:5433
mode tcp
option httpchk GET /primary
http-check expect status 200
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
server patroni1 patroni1:5432 maxconn 100 check port 8008
server patroni2 patroni2:5432 maxconn 100 check port 8008
server patroni3 patroni3:5432 maxconn 100 check port 8008
listen redis
bind *:6379
mode tcp
option tcp-check
tcp-check send PING\r\n
tcp-check expect string +PONG
server redis1 redis:6379 check inter 3s fall 3 rise 2
listen stats
bind *:7000
mode http
stats enable
stats uri /
stats refresh 10s
stats show-legends
stats show-node
stats auth admin:admin