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