feat: modularize playbook with tags
This commit is contained in:
@ -39,8 +39,9 @@ frontend http-in
|
||||
mode http
|
||||
|
||||
maxconn 2000
|
||||
|
||||
{% if enable_hydra_dispatcher %}
|
||||
acl login_dispatcher path_beg -i {{ haproxy_hydra_dispatcher_base_path }}
|
||||
{% endif %}
|
||||
{% if enable_hydra_passwordless %}
|
||||
acl login_passwordless path_beg -i {{ haproxy_hydra_passwordless_base_path }}
|
||||
{% endif %}
|
||||
@ -57,7 +58,9 @@ frontend http-in
|
||||
acl oidc_test path_beg -i {{ haproxy_oidc_test_base_path }}
|
||||
{% endif %}
|
||||
|
||||
{% if enable_hydra_dispatcher %}
|
||||
use_backend hydra_dispatcher if login_dispatcher
|
||||
{% endif %}
|
||||
{% if enable_hydra_passwordless %}
|
||||
use_backend hydra_passwordless if login_passwordless
|
||||
{% endif %}
|
||||
@ -86,6 +89,7 @@ backend hydra
|
||||
http-request set-path %[path,regsub(^{{ haproxy_hydra_base_path }},)]
|
||||
server hydra 127.0.0.1:4444 check
|
||||
|
||||
{% if enable_hydra_dispatcher %}
|
||||
# Backend Hydra Dispatcher
|
||||
backend hydra_dispatcher
|
||||
balance roundrobin
|
||||
@ -94,6 +98,7 @@ backend hydra_dispatcher
|
||||
http-request set-header X-Forwarded-Prefix {{ haproxy_hydra_dispatcher_base_path }}
|
||||
|
||||
server hydra-login-dispatcher 127.0.0.1:3000 check
|
||||
{%- endif %}
|
||||
|
||||
{% if enable_hydra_passwordless %}
|
||||
# Backend Hydra Passwordless
|
||||
|
Reference in New Issue
Block a user