Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

74 wiersze
3.8 KiB

  1. {% if matrix_static_files_container_labels_traefik_enabled %}
  2. traefik.enable=true
  3. {% if matrix_static_files_container_labels_traefik_docker_network %}
  4. traefik.docker.network={{ matrix_static_files_container_labels_traefik_docker_network }}
  5. {% endif %}
  6. traefik.http.services.{{ matrix_static_files_identifier }}.loadbalancer.server.port={{ matrix_static_files_environment_variable_server_port }}
  7. {#
  8. Related to /.well-known/matrix on the matrix domain
  9. #}
  10. {% if matrix_static_files_container_labels_well_known_matrix_endpoint_enabled %}
  11. {% set well_known_matrix_endpoint_middlewares = [] %}
  12. {% if matrix_static_files_container_labels_well_known_matrix_endpoint_middleware_compress_enabled %}
  13. traefik.http.middlewares.{{ matrix_static_files_identifier }}-well-known-compress.compress=true
  14. traefik.http.middlewares.{{ matrix_static_files_identifier }}-well-known-compress.compress.minResponseBodyBytes={{ matrix_static_files_container_labels_well_known_matrix_endpoint_middleware_compress_minResponseBodyBytes }}
  15. {% set well_known_matrix_endpoint_middlewares = well_known_matrix_endpoint_middlewares + [matrix_static_files_identifier + '-well-known-compress'] %}
  16. {% endif %}
  17. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.rule={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_rule }}
  18. {% if well_known_matrix_endpoint_middlewares | length > 0 %}
  19. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.middlewares={{ well_known_matrix_endpoint_middlewares | join(',') }}
  20. {% endif %}
  21. {% if matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_priority | int > 0 %}
  22. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.priority={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_priority }}
  23. {% endif %}
  24. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.service={{ matrix_static_files_identifier }}
  25. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.entrypoints={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_entrypoints }}
  26. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.tls={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_tls | to_json }}
  27. {% if matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_tls %}
  28. traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.tls.certResolver={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_tls_certResolver }}
  29. {% endif %}
  30. {% endif %}
  31. {#
  32. /Related to /.well-known/matrix on the matrix domain
  33. #}
  34. {#
  35. Base domain serving
  36. #}
  37. {% if matrix_static_files_container_labels_base_domain_enabled %}
  38. traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.rule={{ matrix_static_files_container_labels_base_domain_traefik_rule }}
  39. {% if matrix_static_files_container_labels_base_domain_traefik_priority | int > 0 %}
  40. traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.priority={{ matrix_static_files_container_labels_base_domain_traefik_priority }}
  41. {% endif %}
  42. traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.service={{ matrix_static_files_identifier }}
  43. traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.entrypoints={{ matrix_static_files_container_labels_base_domain_traefik_entrypoints }}
  44. traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.tls={{ matrix_static_files_container_labels_base_domain_traefik_tls | to_json }}
  45. {% if matrix_static_files_container_labels_base_domain_traefik_tls %}
  46. traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.tls.certResolver={{ matrix_static_files_container_labels_base_domain_traefik_tls_certResolver }}
  47. {% endif %}
  48. {% endif %}
  49. {#
  50. /Base domain serving
  51. #}
  52. {% endif %}
  53. {{ matrix_static_files_container_labels_additional_labels }}