From 452b5f50a491b6b2b6748468dbeb83f165f4aaf7 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 22 Sep 2018 20:51:21 +0000 Subject: [PATCH] fix copr frontend in prod too --- roles/haproxy/templates/haproxy.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index d3623ba15f..c18673e6c8 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -591,9 +591,15 @@ backend freshmaker-backend server freshmaker-frontend01 freshmaker-frontend01:80 check inter 20s rise 2 fall 3 option httpchk GET /api/1/builds/ +{% if env == "production" %} +#frontend copr-frontend +# bind 0.0.0.0:10070 +# default_backend copr-backend +{% else %} frontend copr-frontend bind 0.0.0.0:10070 default_backend copr-backend +{% endif %} {% if env == "production" %} #backend copr-backend