mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-08-07 00:13:11 +10:00
Remove now-unused Traefik labels support from the rustpush bridge
The metrics endpoint was the only thing this bridge ever routed through Traefik. With it gone, the container was still labeled `traefik.enable=true` without defining any router, which makes Traefik fall back to its default rule and produce a router pointing at nothing. It was also joining the reverse-proxy network for no reason. Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
This commit is contained in:
@@ -68,15 +68,6 @@ matrix_bridge_rustpush_container_additional_networks: "{{ matrix_bridge_rustpush
|
||||
matrix_bridge_rustpush_container_additional_networks_auto: []
|
||||
matrix_bridge_rustpush_container_additional_networks_custom: []
|
||||
|
||||
# matrix_bridge_rustpush_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
|
||||
# See `../templates/labels.j2` for details.
|
||||
#
|
||||
# To inject your own other container labels, see `matrix_bridge_rustpush_container_labels_additional_labels`.
|
||||
matrix_bridge_rustpush_container_labels_traefik_enabled: true
|
||||
matrix_bridge_rustpush_container_labels_traefik_docker_network: "{{ matrix_bridge_rustpush_container_network }}"
|
||||
matrix_bridge_rustpush_container_labels_traefik_entrypoints: web-secure
|
||||
matrix_bridge_rustpush_container_labels_traefik_tls_certResolver: default # noqa var-naming
|
||||
|
||||
# matrix_bridge_rustpush_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
|
||||
# See `../templates/labels.j2` for details.
|
||||
#
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_metrics_traefik_tls_certResolver', 'new': '<removed> (the rustpush bridge does not support metrics)'}
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_metrics_middleware_basic_auth_enabled', 'new': '<removed> (the rustpush bridge does not support metrics)'}
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_metrics_middleware_basic_auth_users', 'new': '<removed> (the rustpush bridge does not support metrics)'}
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_traefik_enabled', 'new': '<removed> (the bridge exposes nothing via Traefik)'}
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_traefik_docker_network', 'new': '<removed> (the bridge exposes nothing via Traefik)'}
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_traefik_entrypoints', 'new': '<removed> (the bridge exposes nothing via Traefik)'}
|
||||
- {'old': 'matrix_bridge_rustpush_container_labels_traefik_tls_certResolver', 'new': '<removed> (the bridge exposes nothing via Traefik)'}
|
||||
|
||||
- name: Fail if required RustPush settings not defined
|
||||
ansible.builtin.fail:
|
||||
|
||||
@@ -5,13 +5,4 @@ SPDX-FileCopyrightText: 2026 Jason LaGuidice
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% if matrix_bridge_rustpush_container_labels_traefik_enabled %}
|
||||
traefik.enable=true
|
||||
|
||||
{% if matrix_bridge_rustpush_container_labels_traefik_docker_network %}
|
||||
traefik.docker.network={{ matrix_bridge_rustpush_container_labels_traefik_docker_network }}
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{{ matrix_bridge_rustpush_container_labels_additional_labels }}
|
||||
|
||||
Reference in New Issue
Block a user