Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
3.1 KiB

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