Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

78 rivejä
3.6 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2023 - 2024 Slavi Pantaleev
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. {% if matrix_corporal_container_labels_traefik_enabled %}
  6. traefik.enable=true
  7. {% if matrix_corporal_container_labels_traefik_docker_network %}
  8. traefik.docker.network={{ matrix_corporal_container_labels_traefik_docker_network }}
  9. {% endif %}
  10. traefik.http.services.matrix-corporal-api.loadbalancer.server.port=41081
  11. traefik.http.services.matrix-corporal-gateway.loadbalancer.server.port=41080
  12. {% if matrix_corporal_container_labels_api_enabled %}
  13. ############################################################
  14. # #
  15. # Corporal API (/_matrix/corporal) #
  16. # #
  17. ############################################################
  18. traefik.http.routers.matrix-corporal-api.rule={{ matrix_corporal_container_labels_api_traefik_rule }}
  19. {% if matrix_corporal_container_labels_api_traefik_priority | int > 0 %}
  20. traefik.http.routers.matrix-corporal-api.priority={{ matrix_corporal_container_labels_api_traefik_priority }}
  21. {% endif %}
  22. traefik.http.routers.matrix-corporal-api.service=matrix-corporal-api
  23. traefik.http.routers.matrix-corporal-api.entrypoints={{ matrix_corporal_container_labels_api_traefik_entrypoints }}
  24. traefik.http.routers.matrix-corporal-api.tls={{ matrix_corporal_container_labels_api_traefik_tls | to_json }}
  25. {% if matrix_corporal_container_labels_api_traefik_tls %}
  26. traefik.http.routers.matrix-corporal-api.tls.certResolver={{ matrix_corporal_container_labels_api_traefik_tls_certResolver }}
  27. {% endif %}
  28. ############################################################
  29. # #
  30. # /Corporal API (/_matrix/corporal) #
  31. # #
  32. ############################################################
  33. {% endif %}
  34. {% if matrix_corporal_container_labels_matrix_client_api_enabled %}
  35. ############################################################
  36. # #
  37. # Matrix Client-Server API (/_matrix) #
  38. # #
  39. ############################################################
  40. traefik.http.routers.matrix-corporal-matrix-client-api.rule={{ matrix_corporal_container_labels_matrix_client_api_traefik_rule }}
  41. {% if matrix_corporal_container_labels_matrix_client_api_traefik_priority | int > 0 %}
  42. traefik.http.routers.matrix-corporal-matrix-client-api.priority={{ matrix_corporal_container_labels_matrix_client_api_traefik_priority }}
  43. {% endif %}
  44. traefik.http.routers.matrix-corporal-matrix-client-api.service=matrix-corporal-gateway
  45. traefik.http.routers.matrix-corporal-matrix-client-api.entrypoints={{ matrix_corporal_container_labels_matrix_client_api_traefik_entrypoints }}
  46. traefik.http.routers.matrix-corporal-matrix-client-api.tls={{ matrix_corporal_container_labels_matrix_client_api_traefik_tls | to_json }}
  47. {% if matrix_corporal_container_labels_matrix_client_api_traefik_tls %}
  48. traefik.http.routers.matrix-corporal-matrix-client-api.tls.certResolver={{ matrix_corporal_container_labels_matrix_client_api_traefik_tls_certResolver }}
  49. {% endif %}
  50. ############################################################
  51. # #
  52. # /Matrix Client-Server API (/_matrix) #
  53. # #
  54. ############################################################
  55. {% endif %}
  56. {% endif %}
  57. {{ matrix_corporal_container_labels_additional_labels }}