[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 <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny
2025-11-21 12:37:40 +01:00
parent aa81d9a1c9
commit b0d7dc1892

View File

@@ -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