diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 71b0094554..4a34046b22 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -451,7 +451,12 @@ frontend docker-candidate-registry-frontend backend docker-candidate-registry-backend balance hdr(appserver) +{% if env == "staging" %} + server docker-candidate-registry01 docker-candidate-registry01:5000 check inter 10s rise 1 fall 2 +{% endif %} +{% if env == "production" %} server oci-candidate-registry01 oci-candidate-registry01:5000 check inter 10s rise 1 fall 2 +{% endif %} frontend modernpaste-frontend bind 0.0.0.0:10055