diff --git a/fe-test-common/overlay/etc/hiera/data/group.yaml b/fe-test-common/overlay/etc/hiera/data/group.yaml index b2fcb61a..e2db862e 100644 --- a/fe-test-common/overlay/etc/hiera/data/group.yaml +++ b/fe-test-common/overlay/etc/hiera/data/group.yaml @@ -59,6 +59,10 @@ sunet_frontend: 'test-1.test.sveidas.se': ips: ['89.45.237.55'] server_args: 'ssl check verify none' + refidp: + 'refidp-1.test.sveidas.se': + ips: ['89.45.236.193'] + server_args: 'ssl check verify none' allow_ports: - 443 letsencrypt_server: 'acme-c.sunet.se' diff --git a/fe-test-common/overlay/opt/frontend/config/testtest/haproxy.j2 b/fe-test-common/overlay/opt/frontend/config/testtest/haproxy.j2 index f3c3826a..f1326b3e 100644 --- a/fe-test-common/overlay/opt/frontend/config/testtest/haproxy.j2 +++ b/fe-test-common/overlay/opt/frontend/config/testtest/haproxy.j2 @@ -20,3 +20,8 @@ frontend {{ site_name }} {% endblock frontend %} +{% block usebackend %} + use_backend {{ site_name }}__refidp if { path_beg /idp/ } + use_backend {{ site_name }}__default +{% endblock usebackend %} +