Make Honoroit not try to capture all matrix.DOMAIN traffic
It only serves a metrics endpoint, so it shouldn't try to capture anything else.
This commit is contained in:
		| @@ -56,7 +56,6 @@ matrix_bot_honoroit_container_labels_traefik_docker_network: "{{ matrix_bot_hono | ||||
| matrix_bot_honoroit_container_labels_traefik_hostname: "{{ matrix_bot_honoroit_hostname }}" | ||||
| # The path prefix must either be `/` or not end with a slash (e.g. `/honoroit`). | ||||
| matrix_bot_honoroit_container_labels_traefik_path_prefix: "{{ matrix_bot_honoroit_path_prefix }}" | ||||
| matrix_bot_honoroit_container_labels_traefik_rule: "Host(`{{ matrix_bot_honoroit_container_labels_traefik_hostname }}`){% if matrix_bot_honoroit_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_bot_honoroit_container_labels_traefik_path_prefix }}`){% endif %}" | ||||
| matrix_bot_honoroit_container_labels_traefik_metrics_path: "{{ matrix_bot_honoroit_metrics_path }}" | ||||
| matrix_bot_honoroit_container_labels_traefik_metrics_rule: "Host(`{{ matrix_bot_honoroit_container_labels_traefik_hostname }}`) && Path(`{{ matrix_bot_honoroit_container_labels_traefik_metrics_path }}`)" | ||||
| matrix_bot_honoroit_container_labels_traefik_priority: 0 | ||||
|   | ||||
| @@ -31,21 +31,6 @@ traefik.http.middlewares.matrix-bot-honoroit-auth.basicauth.users={{ lookup('ans | ||||
| {% set middlewares_metrics = middlewares + ['matrix-bot-honoroit-auth'] %} | ||||
| {% endif %} | ||||
|  | ||||
| traefik.http.routers.matrix-bot-honoroit.rule={{ matrix_bot_honoroit_container_labels_traefik_rule }} | ||||
| {% if matrix_bot_honoroit_container_labels_traefik_priority | int > 0 %} | ||||
| traefik.http.routers.matrix-bot-honoroit.priority={{ matrix_bot_honoroit_container_labels_traefik_priority }} | ||||
| {% endif %} | ||||
| traefik.http.routers.matrix-bot-honoroit.service=matrix-bot-honoroit | ||||
| {% if middlewares | length > 0 %} | ||||
| traefik.http.routers.matrix-bot-honoroit.middlewares={{ middlewares | join(',') }} | ||||
| {% endif %} | ||||
| traefik.http.routers.matrix-bot-honoroit.entrypoints={{ matrix_bot_honoroit_container_labels_traefik_entrypoints }} | ||||
| traefik.http.routers.matrix-bot-honoroit.tls={{ matrix_bot_honoroit_container_labels_traefik_tls | to_json }} | ||||
| {% if matrix_bot_honoroit_container_labels_traefik_tls %} | ||||
| traefik.http.routers.matrix-bot-honoroit.tls.certResolver={{ matrix_bot_honoroit_container_labels_traefik_tls_certResolver }} | ||||
| {% endif %} | ||||
| traefik.http.services.matrix-bot-honoroit.loadbalancer.server.port=8080 | ||||
|  | ||||
| {% if middlewares_metrics | length > 0 %} | ||||
| traefik.http.routers.matrix-bot-honoroit-metrics.rule={{ matrix_bot_honoroit_container_labels_traefik_metrics_rule }} | ||||
| {% if matrix_bot_honoroit_container_labels_traefik_priority | int > 0 %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user