diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 37a42259bf..762e3d9d71 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -49,6 +49,18 @@ backend fp-wiki-backend {% endif %} option httpchk GET /wiki/Main_Page +frontend mirror-lists-frontend + bind 0.0.0.0:10002 + default_backend mirror-lists-backend + +backend mirror-lists-backend + balance hdr(appserver) + timeout connect 30s + server mirrorlist-local1 localhost:18081 check inter 1s rise 2 fall 3 weight 100 + server mirrorlist-local2 localhost:18082 check inter 1s rise 2 fall 3 weight 100 + option httpchk GET /mirrorlist + option allbackups + frontend pkgdb-frontend bind 0.0.0.0:10003 default_backend pkgdb-backend