From d6384fbba2383ecc478055e5444772bbc2df7a6a Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 27 Sep 2018 09:19:23 +0000 Subject: [PATCH] Configure haproxy for copr prod --- roles/haproxy/templates/haproxy.cfg | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index c18673e6c8..44e86aa032 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -591,31 +591,16 @@ 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 -# balance hdr(appserver) -# server copr-frontend01 copr-frontend01:80 check inter 10s rise 1 fall 2 -# server copr-frontend02 copr-frontend02:80 check inter 10s rise 1 fall 2 -# option httpchk GET /api_3/ -{% else %} backend copr-backend balance hdr(appserver) - # XXX mizdebsk 2018-08-28: kill this conditional after F29 beta freeze is litfed cookie SERVERID insert indirect nocache server copr-frontend01 copr-frontend01:80 check inter 10s rise 1 fall 2 cookie copr-frontend01 server copr-frontend02 copr-frontend02:80 check inter 10s rise 1 fall 2 cookie copr-frontend02 option httpchk GET /api_3/ -{% 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.