You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/templates/wordpress/config/haproxy.cfg.j2

33 lines
922 B
Django/Jinja

global
user haproxy
group haproxy
daemon
maxconn 4096
defaults
mode tcp
balance roundrobin
timeout client 30000ms
timeout server 30000ms
timeout connect 3000ms
retries 3
frontend stats
bind *:6666
mode http
stats enable
stats uri /haproxystats
stats show-node
stats auth {{ wordpress_haproxy_admin_username | default('haproxy-admin') }}:{{ wordpress_haproxy_admin_password }}
stats refresh 10s
frontend wordpress_backend
bind 0.0.0.0:3306
default_backend mariadb_servers
backend mariadb_servers
option tcp-check
server maria-01 {{ shared_service_maria_1st_hostname }}:3306 maxconn 2048 check
# TODO - disabled till M-M-replication is in place
# server maria-02 {{ shared_service_maria_2nd_hostname }}:3306 maxconn 2048 check