Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

55 líneas
2.7 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2023 - 2024 Nikita Chernyi
  3. SPDX-FileCopyrightText: 2023 - 2024 Slavi Pantaleev
  4. SPDX-License-Identifier: AGPL-3.0-or-later
  5. #}
  6. {% if matrix_bot_honoroit_container_labels_traefik_enabled %}
  7. traefik.enable=true
  8. {% if matrix_bot_honoroit_container_labels_traefik_docker_network %}
  9. traefik.docker.network={{ matrix_bot_honoroit_container_labels_traefik_docker_network }}
  10. {% endif %}
  11. traefik.http.services.matrix-bot-honoroit-metrics.loadbalancer.server.port=8080
  12. {% set middlewares = [] %}
  13. {% set middlewares_metrics = [] %}
  14. {% if matrix_bot_honoroit_container_labels_traefik_path_prefix != '/' %}
  15. traefik.http.middlewares.matrix-bot-honoroit-slashless-redirect.redirectregex.regex=({{ matrix_bot_honoroit_container_labels_traefik_path_prefix | quote }})$
  16. traefik.http.middlewares.matrix-bot-honoroit-slashless-redirect.redirectregex.replacement=${1}/
  17. {% set middlewares = middlewares + ['matrix-bot-honoroit-slashless-redirect'] %}
  18. {% endif %}
  19. {% if matrix_bot_honoroit_container_labels_traefik_path_prefix != '/' %}
  20. traefik.http.middlewares.matrix-bot-honoroit-strip-prefix.stripprefix.prefixes={{ matrix_bot_honoroit_container_labels_traefik_path_prefix }}
  21. {% set middlewares = middlewares + ['matrix-bot-honoroit-strip-prefix'] %}
  22. {% endif %}
  23. {% if matrix_bot_honoroit_container_labels_traefik_additional_response_headers.keys() | length > 0 %}
  24. {% for name, value in matrix_bot_honoroit_container_labels_traefik_additional_response_headers.items() %}
  25. traefik.http.middlewares.matrix-bot-honoroit-add-headers.headers.customresponseheaders.{{ name }}={{ value }}
  26. {% endfor %}
  27. {% set middlewares = middlewares + ['matrix-bot-honoroit-add-headers'] %}
  28. {% endif %}
  29. {% if middlewares_metrics | length > 0 %}
  30. traefik.http.routers.matrix-bot-honoroit-metrics.rule={{ matrix_bot_honoroit_container_labels_traefik_metrics_rule }}
  31. {% if matrix_bot_honoroit_container_labels_traefik_priority | int > 0 %}
  32. traefik.http.routers.matrix-bot-honoroit-metrics.priority={{ matrix_bot_honoroit_container_labels_traefik_priority }}
  33. {% endif %}
  34. traefik.http.routers.matrix-bot-honoroit-metrics.service=matrix-bot-honoroit-metrics
  35. traefik.http.routers.matrix-bot-honoroit-metrics.middlewares={{ middlewares_metrics | join(',') }}
  36. traefik.http.routers.matrix-bot-honoroit-metrics.entrypoints={{ matrix_bot_honoroit_container_labels_traefik_entrypoints }}
  37. traefik.http.routers.matrix-bot-honoroit-metrics.tls={{ matrix_bot_honoroit_container_labels_traefik_tls | to_json }}
  38. {% if matrix_bot_honoroit_container_labels_traefik_tls %}
  39. traefik.http.routers.matrix-bot-honoroit-metrics.tls.certResolver={{ matrix_bot_honoroit_container_labels_traefik_tls_certResolver }}
  40. {% endif %}
  41. {% endif %}
  42. {% endif %}
  43. {{ matrix_bot_honoroit_container_labels_additional_labels }}