From b0d7dc18922e74f18e3e545ee8e2deb5d8e2f99f Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Fri, 21 Nov 2025 12:37:40 +0100 Subject: [PATCH] [haproxy] Fix regex for ipsilon The env_suffix caused the regex to contain \\ and it didn't redirected the request correctly. Signed-off-by: Michal Konecny --- roles/haproxy/templates/haproxy.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index d9a31b66f5..3a8cf5ec09 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -165,7 +165,11 @@ frontend ipsilon-frontend acl path_openidc path_beg /openidc acl path_openid path_beg /openid acl is_openid_cookie req.cook(OPENID) true - acl host_is_id_sub hdr(host) -m reg -i ^.+\.id\{{ env_suffix }}\.fedoraproject\.org$ +{% if env == 'staging' %} + acl host_is_id_sub hdr(host) -m reg -i ^.+\.id\.stg\.fedoraproject\.org$ +{% else %} + acl host_is_id_sub hdr(host) -m reg -i ^.+\.id\.fedoraproject\.org$ +{% endif %} use_backend ipsilon-backend if path_openidc use_backend ipsilon-backend-openid if path_openid