diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 45816b859b..aa19fbb5bf 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -315,6 +315,16 @@ listen pps 0.0.0.0:10051 option httpchk GET /pps {% endif %} +{% if env == "staging" %} +listen fas3 0.0.0.0:10052 + # These values are set extremely low so any issues are recovered from very + # quickly. Setting these higher will cause odd behavior in apps that + # depend on fas (like pkgdb, bodhi, etc) + balance hdr(appserver) + server fas3-01.stg fas3-01.stg:80 check inter 5s rise 1 fall 2 + option httpchk GET /fas3/ +{% endif %} + # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others. # stunnel should be sitting on port 9939 (public) and redirecting