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.
 
 

60 lines
2.5 KiB

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