Make Traefik labels files look better
This moves the comments from being just in Jinja, to actually ending up in the generated `labels` file, which makes inspection of the final result easier. Also, some new lines were added here and there to make labels more legible. The generated file may still include weird new-lines due to various `if` statements yielding content or not, but that's not so ugly anymore - now that we have proper start/end sections that are visible in the final `labels` file.
This commit is contained in:
@ -5,10 +5,14 @@ traefik.enable=true
|
||||
traefik.docker.network={{ matrix_ldap_registration_proxy_container_labels_traefik_docker_network }}
|
||||
{% endif %}
|
||||
|
||||
{#
|
||||
Registration
|
||||
#}
|
||||
{% if matrix_ldap_registration_proxy_container_labels_public_endpoint_enabled %}
|
||||
############################################################
|
||||
# #
|
||||
# Registration #
|
||||
# #
|
||||
############################################################
|
||||
|
||||
traefik.http.services.matrix-ldap-registration-proxy.loadbalancer.server.port={{ matrix_ldap_registration_listen_port }}
|
||||
|
||||
traefik.http.middlewares.matrix-ldap-registration-proxy-registration-endpoint-replacepath.replacepath.path=/register
|
||||
|
||||
@ -28,11 +32,13 @@ traefik.http.routers.matrix-ldap-registration-proxy-registration.tls={{ matrix_l
|
||||
traefik.http.routers.matrix-ldap-registration-proxy-registration.tls.certResolver={{ matrix_ldap_registration_proxy_container_labels_public_endpoint_traefik_tls_certResolver }}
|
||||
{% endif %}
|
||||
|
||||
traefik.http.services.matrix-ldap-registration-proxy.loadbalancer.server.port={{ matrix_ldap_registration_listen_port }}
|
||||
############################################################
|
||||
# #
|
||||
# /Registration #
|
||||
# #
|
||||
############################################################
|
||||
{% endif %}
|
||||
{#
|
||||
/Registration
|
||||
#}
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user