Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

89 строки
5.9 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # Synapse Usage Exporter
  6. # Project source code URL: https://github.com/loelkes/synapse-usage-exporter
  7. matrix_synapse_usage_exporter_enabled: false
  8. # Controls the hostname and path that this component exposes its web services on.
  9. # Only used if `matrix_synapse_usage_exporter_proxying_enabled` is true.
  10. matrix_synapse_usage_exporter_hostname: "{{ matrix_server_fqn_matrix }}"
  11. matrix_synapse_usage_exporter_path_prefix: /report-usage-stats/push
  12. # matrix_synapse_usage_exporter_identifier controls the identifier of this synapse-usage-exporter instance, which influences:
  13. # - the default storage path
  14. # - the names of systemd services and containers
  15. matrix_synapse_usage_exporter_identifier: matrix-synapse-usage-exporter
  16. matrix_synapse_usage_exporter_container_port: 5000
  17. # No docker images are currently hosted for the repo, so defaulting to true
  18. matrix_synapse_usage_exporter_container_image_self_build: true
  19. matrix_synapse_usage_exporter_container_image_self_build_repo: "https://github.com/loelkes/synapse-usage-exporter.git"
  20. matrix_synapse_usage_exporter_container_image_path: "loelkes/synapse-usage-exporter"
  21. matrix_synapse_usage_exporter_container_image: "{{ matrix_synapse_usage_exporter_container_image_name_prefix }}{{ matrix_synapse_usage_exporter_container_image_path }}:{{ matrix_synapse_usage_exporter_container_image_tag }}"
  22. matrix_synapse_usage_exporter_container_image_name_prefix: "{{ 'localhost/' if matrix_synapse_usage_exporter_container_image_self_build else matrix_container_global_registry_prefix }}"
  23. matrix_synapse_usage_exporter_container_image_tag: "{{ 'main' if matrix_synapse_usage_exporter_container_image_self_build else 'latest' }}"
  24. matrix_synapse_usage_exporter_container_image_force_pull: "{{ matrix_synapse_usage_exporter_container_image.endswith(':latest') }}"
  25. matrix_synapse_usage_exporter_base_path: "{{ matrix_base_data_path }}/{{ matrix_synapse_usage_exporter_identifier }}"
  26. matrix_synapse_usage_exporter_docker_src_files_path: "{{ matrix_synapse_usage_exporter_base_path }}/docker-src"
  27. # List of systemd services that synapse-usage-exporter.service depends on
  28. matrix_synapse_usage_exporter_systemd_required_services_list: "{{ matrix_synapse_usage_exporter_systemd_required_services_list_default + matrix_synapse_usage_exporter_systemd_required_services_list_auto + matrix_synapse_usage_exporter_systemd_required_services_list_custom }}"
  29. matrix_synapse_usage_exporter_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  30. matrix_synapse_usage_exporter_systemd_required_services_list_auto: []
  31. matrix_synapse_usage_exporter_systemd_required_services_list_custom: []
  32. # List of systemd services that synapse-usage-exporter.service wants
  33. matrix_synapse_usage_exporter_systemd_wanted_services_list: []
  34. # The base container network. It will be auto-created by this role if it doesn't exist already.
  35. matrix_synapse_usage_exporter_container_network: "{{ matrix_synapse_usage_exporter_identifier }}"
  36. # A list of additional container networks that the container would be connected to.
  37. # The role does not create these networks, so make sure they already exist.
  38. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  39. matrix_synapse_usage_exporter_container_additional_networks: []
  40. # Extra arguments for the Docker container
  41. matrix_synapse_usage_exporter_container_extra_arguments: []
  42. # Controls whether the synapse-usage-exporter's web services should be proxied (exposed publicly).
  43. #
  44. # Exposure happens on `matrix.example.com/report-usage-stats/push` by default.
  45. # See: `matrix_synapse_usage_exporter_hostname` and `matrix_synapse_usage_exporter_path_prefix`.
  46. matrix_synapse_usage_exporter_proxying_enabled: false
  47. # matrix_synapse_usage_exporter_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  48. # See `../templates/labels.j2` for details.
  49. #
  50. # To inject your own other container labels, see `matrix_synapse_usage_exporter_container_labels_additional_labels`.
  51. matrix_synapse_usage_exporter_container_labels_traefik_enabled: "{{ matrix_synapse_usage_exporter_proxying_enabled }}"
  52. matrix_synapse_usage_exporter_container_labels_traefik_docker_network: "{{ matrix_synapse_usage_exporter_container_network }}"
  53. matrix_synapse_usage_exporter_container_labels_traefik_path_prefix: "{{ matrix_synapse_usage_exporter_path_prefix }}"
  54. matrix_synapse_usage_exporter_container_labels_traefik_rule: "Host(`{{ matrix_synapse_usage_exporter_hostname }}`) && PathPrefix(`{{ matrix_synapse_usage_exporter_container_labels_traefik_path_prefix }}`)"
  55. matrix_synapse_usage_exporter_container_labels_traefik_priority: 0
  56. matrix_synapse_usage_exporter_container_labels_traefik_entrypoints: "web-secure"
  57. matrix_synapse_usage_exporter_container_labels_traefik_tls: "{{ matrix_synapse_usage_exporter_container_labels_traefik_entrypoints != 'web' }}"
  58. matrix_synapse_usage_exporter_container_labels_traefik_tls_certResolver: default # noqa var-naming
  59. # matrix_synapse_usage_exporter_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  60. # See `../templates/labels.j2` for details.
  61. #
  62. # Example:
  63. # matrix_synapse_usage_exporter_container_labels_additional_labels: |
  64. # my.label=1
  65. # another.label="here"
  66. matrix_synapse_usage_exporter_container_labels_additional_labels: ''
  67. # matrix_synapse_usage_exporter_dashboard_urls contains a list of URLs with Grafana dashboard definitions.
  68. # If the Grafana role is enabled, these dashboards will be downloaded.
  69. matrix_synapse_usage_exporter_dashboard_urls:
  70. - https://raw.githubusercontent.com/spantaleev/matrix-docker-ansible-deploy/master/roles/custom/matrix-synapse-usage-exporter/templates/grafana/synapse-usage-exporter.json