diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 86ec3375de..f83c2a4a08 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -172,12 +172,15 @@ frontend ipsilon-frontend bind 0.0.0.0:10020 {% if env == "staging" %} + option http-buffer-request # Define ipsilon OpenID only instance acl path_openidc path_beg /openidc acl path_openid path_beg /openid + acl is_openid_payload req.body_payload(0,0) -m sub 'openid_identifier' use_backend ipsilon-backend if path_openidc use_backend ipsilon-backend-openid if path_openid + use_backend ipsilon-backend-openid if is_openid_payload {% endif %} default_backend ipsilon-backend