Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

79 lignes
3.9 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. {% if matrix_bot_meowlnir_container_labels_traefik_enabled %}
  6. traefik.enable=true
  7. {% if matrix_bot_meowlnir_container_labels_traefik_docker_network %}
  8. traefik.docker.network={{ matrix_bot_meowlnir_container_labels_traefik_docker_network }}
  9. {% endif %}
  10. traefik.http.services.matrix-bot-meowlnir.loadbalancer.server.port={{ matrix_bot_meowlnir_config_meowlnir_port }}
  11. {% if matrix_bot_meowlnir_config_reporting_enabled %}
  12. ############################################################
  13. # #
  14. # Reports (/_matrix/client/../rooms/../report) #
  15. # #
  16. ############################################################
  17. {# Meowlnir serves these paths verbatim and applies CORS headers itself, #}
  18. {# so no path-rewriting or CORS middleware is necessary here. #}
  19. traefik.http.routers.matrix-bot-meowlnir-reporting.rule={{ matrix_bot_meowlnir_container_labels_reporting_traefik_rule }}
  20. {% if matrix_bot_meowlnir_container_labels_reporting_traefik_priority | int > 0 %}
  21. traefik.http.routers.matrix-bot-meowlnir-reporting.priority={{ matrix_bot_meowlnir_container_labels_reporting_traefik_priority }}
  22. {% endif %}
  23. traefik.http.routers.matrix-bot-meowlnir-reporting.service=matrix-bot-meowlnir
  24. traefik.http.routers.matrix-bot-meowlnir-reporting.entrypoints={{ matrix_bot_meowlnir_container_labels_reporting_traefik_entrypoints }}
  25. traefik.http.routers.matrix-bot-meowlnir-reporting.tls={{ matrix_bot_meowlnir_container_labels_reporting_traefik_tls | to_json }}
  26. {% if matrix_bot_meowlnir_container_labels_reporting_traefik_tls %}
  27. traefik.http.routers.matrix-bot-meowlnir-reporting.tls.certResolver={{ matrix_bot_meowlnir_container_labels_reporting_traefik_tls_certResolver }}
  28. {% endif %}
  29. ############################################################
  30. # #
  31. # /Reports (/_matrix/client/../rooms/../report) #
  32. # #
  33. ############################################################
  34. {% endif %}
  35. {% if matrix_bot_meowlnir_policy_server_enabled %}
  36. ############################################################
  37. # #
  38. # Policy server (/_matrix/policy) #
  39. # #
  40. ############################################################
  41. {# Served on the federation endpoint, so that other servers in a room can reach it. #}
  42. traefik.http.routers.matrix-bot-meowlnir-policy-server.rule={{ matrix_bot_meowlnir_container_labels_policy_server_traefik_rule }}
  43. {% if matrix_bot_meowlnir_container_labels_policy_server_traefik_priority | int > 0 %}
  44. traefik.http.routers.matrix-bot-meowlnir-policy-server.priority={{ matrix_bot_meowlnir_container_labels_policy_server_traefik_priority }}
  45. {% endif %}
  46. traefik.http.routers.matrix-bot-meowlnir-policy-server.service=matrix-bot-meowlnir
  47. traefik.http.routers.matrix-bot-meowlnir-policy-server.entrypoints={{ matrix_bot_meowlnir_container_labels_policy_server_traefik_entrypoints }}
  48. traefik.http.routers.matrix-bot-meowlnir-policy-server.tls={{ matrix_bot_meowlnir_container_labels_policy_server_traefik_tls | to_json }}
  49. {% if matrix_bot_meowlnir_container_labels_policy_server_traefik_tls %}
  50. traefik.http.routers.matrix-bot-meowlnir-policy-server.tls.certResolver={{ matrix_bot_meowlnir_container_labels_policy_server_traefik_tls_certResolver }}
  51. {% endif %}
  52. ############################################################
  53. # #
  54. # /Policy server (/_matrix/policy) #
  55. # #
  56. ############################################################
  57. {% endif %}
  58. {% endif %}
  59. {{ matrix_bot_meowlnir_container_labels_traefik_labels_additional_labels }}