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.
 
 

83 lines
4.3 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. {% if matrix_mautrix_googlechat_container_labels_traefik_enabled %}
  6. traefik.enable=true
  7. {% if matrix_mautrix_googlechat_container_labels_traefik_docker_network %}
  8. traefik.docker.network={{ matrix_mautrix_googlechat_container_labels_traefik_docker_network }}
  9. {% endif %}
  10. traefik.http.services.matrix-mautrix-googlechat-public.loadbalancer.server.port=8080
  11. traefik.http.services.matrix-mautrix-googlechat-metrics.loadbalancer.server.port=8000
  12. {% if matrix_mautrix_googlechat_container_labels_public_endpoint_enabled %}
  13. ############################################################
  14. # #
  15. # Public #
  16. # #
  17. ############################################################
  18. traefik.http.routers.matrix-mautrix-googlechat-public.rule={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_rule }}
  19. {% if matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_priority | int > 0 %}
  20. traefik.http.routers.matrix-mautrix-googlechat-public.priority={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_priority }}
  21. {% endif %}
  22. traefik.http.routers.matrix-mautrix-googlechat-public.service=matrix-mautrix-googlechat-public
  23. traefik.http.routers.matrix-mautrix-googlechat-public.entrypoints={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_entrypoints }}
  24. traefik.http.routers.matrix-mautrix-googlechat-public.tls={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls | to_json }}
  25. {% if matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls %}
  26. traefik.http.routers.matrix-mautrix-googlechat-public.tls.certResolver={{ matrix_mautrix_googlechat_container_labels_public_endpoint_traefik_tls_certResolver }}
  27. {% endif %}
  28. ############################################################
  29. # #
  30. # /Public #
  31. # #
  32. ############################################################
  33. {% endif %}
  34. {% if matrix_mautrix_googlechat_container_labels_metrics_enabled %}
  35. ############################################################
  36. # #
  37. # Metrics #
  38. # #
  39. ############################################################
  40. {% if matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_enabled %}
  41. traefik.http.middlewares.matrix-mautrix-googlechat-metrics-basic-auth.basicauth.users={{ matrix_mautrix_googlechat_container_labels_metrics_middleware_basic_auth_users }}
  42. traefik.http.routers.matrix-mautrix-googlechat-metrics.middlewares=matrix-mautrix-googlechat-metrics-basic-auth
  43. {% endif %}
  44. traefik.http.routers.matrix-mautrix-googlechat-metrics.rule={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_rule }}
  45. {% if matrix_mautrix_googlechat_container_labels_metrics_traefik_priority | int > 0 %}
  46. traefik.http.routers.matrix-mautrix-googlechat-metrics.priority={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_priority }}
  47. {% endif %}
  48. traefik.http.routers.matrix-mautrix-googlechat-metrics.service=matrix-mautrix-googlechat-metrics
  49. traefik.http.routers.matrix-mautrix-googlechat-metrics.entrypoints={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_entrypoints }}
  50. traefik.http.routers.matrix-mautrix-googlechat-metrics.tls={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_tls | to_json }}
  51. {% if matrix_mautrix_googlechat_container_labels_metrics_traefik_tls %}
  52. traefik.http.routers.matrix-mautrix-googlechat-metrics.tls.certResolver={{ matrix_mautrix_googlechat_container_labels_metrics_traefik_tls_certResolver }}
  53. {% endif %}
  54. ############################################################
  55. # #
  56. # /Metrics #
  57. # #
  58. ############################################################
  59. {% endif %}
  60. {% endif %}
  61. {{ matrix_mautrix_googlechat_container_labels_additional_labels }}