2024-01-09 11:26:46 +02:00
|
|
|
{% if matrix_ldap_registration_proxy_container_labels_traefik_enabled %}
|
|
|
|
traefik.enable=true
|
|
|
|
|
|
|
|
{% if matrix_ldap_registration_proxy_container_labels_traefik_docker_network %}
|
|
|
|
traefik.docker.network={{ matrix_ldap_registration_proxy_container_labels_traefik_docker_network }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if matrix_ldap_registration_proxy_container_labels_public_endpoint_enabled %}
|
2024-01-15 10:41:15 +02:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# Registration #
|
|
|
|
# #
|
|
|
|
############################################################
|
|
|
|
|
|
|
|
traefik.http.services.matrix-ldap-registration-proxy.loadbalancer.server.port={{ matrix_ldap_registration_listen_port }}
|
2024-01-09 11:26:46 +02:00
|
|
|
|
|
|
|
traefik.http.middlewares.matrix-ldap-registration-proxy-registration-endpoint-replacepath.replacepath.path=/register
|
|
|
|
|
2024-01-11 12:35:30 +02:00
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.rule={{ matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_rule }}
|
2024-01-09 11:26:46 +02:00
|
|
|
|
2024-01-11 12:35:30 +02:00
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.middlewares=matrix-ldap-registration-proxy-registration-endpoint-replacepath
|
2024-01-09 11:26:46 +02:00
|
|
|
|
|
|
|
{% if matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_priority | int > 0 %}
|
2024-01-11 12:35:30 +02:00
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.priority={{ matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_priority }}
|
2024-01-09 11:26:46 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-11 12:35:30 +02:00
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.service=matrix-ldap-registration-proxy
|
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.entrypoints={{ matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_entrypoints }}
|
2024-01-09 11:26:46 +02:00
|
|
|
|
2024-01-11 12:35:30 +02:00
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.tls={{ matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_tls | to_json }}
|
2024-01-09 11:26:46 +02:00
|
|
|
{% if matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_tls %}
|
2024-01-11 12:35:30 +02:00
|
|
|
traefik.http.routers.matrix-ldap-registration-proxy-registration.tls.certResolver={{ matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_tls_certResolver }}
|
2024-01-09 11:26:46 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2024-01-15 10:41:15 +02:00
|
|
|
############################################################
|
|
|
|
# #
|
|
|
|
# /Registration #
|
|
|
|
# #
|
|
|
|
############################################################
|
2024-01-09 11:26:46 +02:00
|
|
|
{% endif %}
|
2024-01-15 10:41:15 +02:00
|
|
|
|
2024-01-09 11:26:46 +02:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ matrix_ldap_registration_proxy_container_labels_additional_labels }}
|