mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user