feat: use haproxy to access oidc-test app

This commit is contained in:
2022-08-02 11:57:18 +02:00
parent 9401ca6adc
commit a74635f6cf
3 changed files with 20 additions and 4 deletions

View File

@ -46,6 +46,9 @@ frontend http-in
{% if enable_hydra_saml %}
acl login_saml path_beg -i {{ haproxy_hydra_saml_base_path }}
{% endif %}
{% if enable_oidc_test_app %}
acl oidc_test path_beg -i {{ haproxy_oidc_test_base_path }}
{% endif %}
use_backend hydra_dispatcher if login_dispatcher
{% if enable_hydra_passwordless %}
@ -53,6 +56,9 @@ frontend http-in
{% endif %}
{% if enable_hydra_saml %}
use_backend hydra_saml if login_saml
{% endif %}
{% if enable_oidc_test_app %}
use_backend oidc_test if oidc_test
{% endif %}
use_backend hydra
@ -89,3 +95,11 @@ backend hydra_saml
balance roundrobin
server hydra-login-saml 127.0.0.1:3002 check
{%- endif %}
{% if enable_oidc_test_app %}
backend oidc_test
balance roundrobin
# Suppression du préfixe /auth/oidc-test dans l'URL
http-request set-path %[path,regsub(^{{ haproxy_oidc_test_base_path }},)]
server oidc-test 127.0.0.1:8080 check
{% endif %}