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

134 строки
7.5 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2023 Benjamin Kampmann
  3. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  4. # SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # rageshake is a bug report collection service
  9. # Project source code URL: https://github.com/matrix-org/rageshake
  10. matrix_rageshake_enabled: true
  11. matrix_rageshake_scheme: https
  12. # The hostname at which rageshake is served.
  13. matrix_rageshake_hostname: ''
  14. # The path at which rageshake is exposed.
  15. # This value must either be `/` or not end with a slash (e.g. `/rageshake`).
  16. matrix_rageshake_path_prefix: /
  17. # There are no stable container image tags yet.
  18. # See: https://github.com/matrix-org/rageshake/issues/69
  19. # renovate: datasource=docker depName=ghcr.io/matrix-org/rageshake
  20. matrix_rageshake_version: 1.17.1
  21. matrix_rageshake_base_path: "{{ matrix_base_data_path }}/rageshake"
  22. matrix_rageshake_config_path: "{{ matrix_rageshake_base_path }}/config"
  23. matrix_rageshake_data_path: "{{ matrix_rageshake_base_path }}/data"
  24. matrix_rageshake_container_src_files_path: "{{ matrix_rageshake_base_path }}/container-src"
  25. matrix_rageshake_container_image: "{{ matrix_rageshake_container_image_registry_prefix }}matrix-org/rageshake:{{ matrix_rageshake_container_image_tag }}"
  26. matrix_rageshake_container_image_registry_prefix: "{{ 'localhost/' if matrix_rageshake_container_image_self_build else matrix_rageshake_container_image_registry_prefix_upstream }}"
  27. matrix_rageshake_container_image_registry_prefix_upstream: "{{ matrix_rageshake_container_image_registry_prefix_upstream_default }}"
  28. matrix_rageshake_container_image_registry_prefix_upstream_default: "ghcr.io/"
  29. matrix_rageshake_container_image_tag: "{{ matrix_rageshake_version }}"
  30. matrix_rageshake_container_image_self_build: false
  31. matrix_rageshake_container_image_self_build_repo: "https://github.com/matrix-org/rageshake/"
  32. matrix_rageshake_container_image_self_build_repo_version: "{{ matrix_rageshake_version }}"
  33. # Controls whether the container exposes its HTTP port (tcp/9110 in the container).
  34. #
  35. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9110"), or empty string to not expose.
  36. matrix_rageshake_container_http_host_bind_port: ''
  37. # The base container network. It will be auto-created by this role if it doesn't exist already.
  38. matrix_rageshake_container_network: matrix-rageshake
  39. # A list of additional container networks that the container would be connected to.
  40. # The role does not create these networks, so make sure they already exist.
  41. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  42. matrix_rageshake_container_additional_networks: []
  43. # matrix_rageshake_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  44. # See `../templates/labels.j2` for details.
  45. #
  46. # To inject your own other container labels, see `matrix_rageshake_container_labels_additional_labels`.
  47. matrix_rageshake_container_labels_traefik_enabled: true
  48. matrix_rageshake_container_labels_traefik_docker_network: "{{ matrix_rageshake_container_network }}"
  49. matrix_rageshake_container_labels_traefik_hostname: "{{ matrix_rageshake_hostname }}"
  50. # The path prefix must either be `/` or not end with a slash (e.g. `/rageshake`).
  51. matrix_rageshake_container_labels_traefik_path_prefix: "{{ matrix_rageshake_path_prefix }}"
  52. matrix_rageshake_container_labels_traefik_rule: "Host(`{{ matrix_rageshake_container_labels_traefik_hostname }}`){% if matrix_rageshake_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_rageshake_container_labels_traefik_path_prefix }}`){% endif %}"
  53. matrix_rageshake_container_labels_traefik_priority: 0
  54. matrix_rageshake_container_labels_traefik_entrypoints: web-secure
  55. matrix_rageshake_container_labels_traefik_tls: "{{ matrix_rageshake_container_labels_traefik_entrypoints != 'web' }}"
  56. matrix_rageshake_container_labels_traefik_tls_certResolver: default # noqa var-naming
  57. # Controls which additional headers to attach to all HTTP responses.
  58. # To add your own headers, use `matrix_rageshake_container_labels_traefik_additional_response_headers_custom`
  59. matrix_rageshake_container_labels_traefik_additional_response_headers: "{{ matrix_rageshake_container_labels_traefik_additional_response_headers_auto | combine(matrix_rageshake_container_labels_traefik_additional_response_headers_custom) }}"
  60. matrix_rageshake_container_labels_traefik_additional_response_headers_auto: {}
  61. matrix_rageshake_container_labels_traefik_additional_response_headers_custom: {}
  62. # matrix_rageshake_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  63. # See `../templates/labels.j2` for details.
  64. #
  65. # Example:
  66. # matrix_rageshake_container_labels_additional_labels: |
  67. # my.label=1
  68. # another.label="here"
  69. matrix_rageshake_container_labels_additional_labels: ''
  70. # A list of extra arguments to pass to the container
  71. matrix_rageshake_container_extra_arguments: []
  72. # List of systemd services that matrix-rageshake.service depends on
  73. matrix_rageshake_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  74. # List of systemd services that matrix-rageshake.service wants
  75. matrix_rageshake_systemd_wanted_services_list: []
  76. matrix_rageshake_config_api_prefix: "{{ matrix_rageshake_scheme }}://{{ matrix_rageshake_hostname }}{{ matrix_rageshake_path_prefix }}{{ '' if matrix_rageshake_path_prefix == '/' else '/' }}api/"
  77. # Default rageshake configuration template which covers the generic use case.
  78. # You can customize it by controlling the various variables inside it.
  79. #
  80. # For a more advanced customization, you can extend the default (see `matrix_rageshake_configuration_extension_yaml`)
  81. # or completely replace this variable with your own template.
  82. matrix_rageshake_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  83. matrix_rageshake_configuration_extension_yaml: |
  84. # Your custom YAML configuration for Synapse goes here.
  85. # This configuration extends the default starting configuration (`matrix_rageshake_configuration_yaml`).
  86. #
  87. # You can override individual variables from the default configuration, or introduce new ones.
  88. #
  89. # If you need something more special, you can take full control by
  90. # completely redefining `matrix_rageshake_configuration_yaml`.
  91. #
  92. # Example configuration extension follows:
  93. #
  94. # github_project_mappings:
  95. # my-app: octocat/HelloWorld
  96. matrix_rageshake_configuration_extension: "{{ matrix_rageshake_configuration_extension_yaml | from_yaml if matrix_rageshake_configuration_extension_yaml | from_yaml is mapping else {} }}"
  97. # Holds the final Synapse configuration (a combination of the default and its extension).
  98. # You most likely don't need to touch this variable. Instead, see `matrix_rageshake_configuration_yaml`.
  99. matrix_rageshake_configuration: "{{ matrix_rageshake_configuration_yaml | from_yaml | combine(matrix_rageshake_configuration_extension, recursive=True) }}"
  100. # matrix_rageshake_restart_necessary controls whether the service
  101. # will be restarted (when true) or merely started (when false) by the
  102. # systemd service manager role (when conditional restart is enabled).
  103. #
  104. # This value is automatically computed during installation based on whether
  105. # any configuration files, the systemd service file, or the container image changed.
  106. # The default of `false` means "no restart needed" — appropriate when the role's
  107. # installation tasks haven't run (e.g., due to --tags skipping them).
  108. matrix_rageshake_restart_necessary: false