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

148 строки
7.7 KiB

  1. # SPDX-FileCopyrightText: 2021 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2021 Ahmad Haghighi
  3. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  4. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  5. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  6. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  7. #
  8. # SPDX-License-Identifier: AGPL-3.0-or-later
  9. ---
  10. # Sygnal is a reference Push Gateway for Matrix.
  11. # To make use of it for delivering push notificatins, you'll need to develop/build your own Matrix app.
  12. # Project source code URL: https://github.com/matrix-org/sygnal
  13. matrix_sygnal_enabled: true
  14. # The hostname at which Sygnal is served.
  15. matrix_sygnal_hostname: ''
  16. # The path at which Sygnal is exposed.
  17. # This value must either be `/` or not end with a slash (e.g. `/sygnal`).
  18. matrix_sygnal_path_prefix: /
  19. # renovate: datasource=docker depName=matrixdotorg/sygnal
  20. matrix_sygnal_version: v0.15.1
  21. matrix_sygnal_base_path: "{{ matrix_base_data_path }}/sygnal"
  22. matrix_sygnal_config_path: "{{ matrix_sygnal_base_path }}/config"
  23. matrix_sygnal_data_path: "{{ matrix_sygnal_base_path }}/data"
  24. # List of systemd services that matrix-sygnal.service depends on.
  25. matrix_sygnal_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  26. # List of systemd services that matrix-sygnal.service wants
  27. matrix_sygnal_systemd_wanted_services_list: []
  28. matrix_sygnal_container_image: "{{ matrix_sygnal_container_image_registry_prefix }}matrixdotorg/sygnal:{{ matrix_sygnal_container_image_tag }}"
  29. matrix_sygnal_container_image_tag: "{{ matrix_sygnal_version }}"
  30. matrix_sygnal_container_image_registry_prefix: "{{ matrix_sygnal_container_image_registry_prefix_upstream }}"
  31. matrix_sygnal_container_image_registry_prefix_upstream: "{{ matrix_sygnal_container_image_registry_prefix_upstream_default }}"
  32. matrix_sygnal_container_image_registry_prefix_upstream_default: "docker.io/"
  33. matrix_sygnal_container_image_force_pull: "{{ matrix_sygnal_container_image.endswith(':latest') }}"
  34. # The base container network. It will be auto-created by this role if it doesn't exist already.
  35. matrix_sygnal_container_network: "{{ matrix_sygnal_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_sygnal_container_additional_networks: []
  40. # Controls whether the matrix-sygnal container exposes its HTTP port (tcp/6000 in the container).
  41. #
  42. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:6000"), or empty string to not expose.
  43. matrix_sygnal_container_http_host_bind_port: ''
  44. # matrix_sygnal_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  45. # See `../templates/labels.j2` for details.
  46. #
  47. # To inject your own other container labels, see `matrix_sygnal_container_labels_additional_labels`.
  48. matrix_sygnal_container_labels_traefik_enabled: true
  49. matrix_sygnal_container_labels_traefik_docker_network: "{{ matrix_sygnal_container_network }}"
  50. matrix_sygnal_container_labels_traefik_hostname: "{{ matrix_sygnal_hostname }}"
  51. # The path prefix must either be `/` or not end with a slash (e.g. `/sygnal`).
  52. matrix_sygnal_container_labels_traefik_path_prefix: "{{ matrix_sygnal_path_prefix }}"
  53. matrix_sygnal_container_labels_traefik_rule: "Host(`{{ matrix_sygnal_container_labels_traefik_hostname }}`){% if matrix_sygnal_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_sygnal_container_labels_traefik_path_prefix }}`){% endif %}"
  54. matrix_sygnal_container_labels_traefik_priority: 0
  55. matrix_sygnal_container_labels_traefik_entrypoints: web-secure
  56. matrix_sygnal_container_labels_traefik_tls: "{{ matrix_sygnal_container_labels_traefik_entrypoints != 'web' }}"
  57. matrix_sygnal_container_labels_traefik_tls_certResolver: default # noqa var-naming
  58. # Controls which additional headers to attach to all HTTP responses.
  59. # To add your own headers, use `matrix_sygnal_container_labels_traefik_additional_response_headers_custom`
  60. matrix_sygnal_container_labels_traefik_additional_response_headers: "{{ matrix_sygnal_container_labels_traefik_additional_response_headers_auto | combine(matrix_sygnal_container_labels_traefik_additional_response_headers_custom) }}"
  61. matrix_sygnal_container_labels_traefik_additional_response_headers_auto: {}
  62. matrix_sygnal_container_labels_traefik_additional_response_headers_custom: {}
  63. # matrix_sygnal_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  64. # See `../templates/labels.j2` for details.
  65. #
  66. # Example:
  67. # matrix_sygnal_container_labels_additional_labels: |
  68. # my.label=1
  69. # another.label="here"
  70. matrix_sygnal_container_labels_additional_labels: ''
  71. # A list of extra arguments to pass to the container
  72. matrix_sygnal_container_extra_arguments: []
  73. # A map (dictionary) of apps instances that this server works with.
  74. #
  75. # Example configuration:
  76. #
  77. # matrix_sygnal_apps:
  78. # com.example.myapp.ios:
  79. # type: apns
  80. # # .. more configuration ..
  81. # com.example.myapp.android:
  82. # type: gcm
  83. # api_key: your_api_key_for_gcm
  84. # # .. more configuration ..
  85. #
  86. # The APNS configuration needs to reference some certificate files.
  87. # One can put these in the `matrix_sygnal_data_path` directory (`/matrix/sygnal/data`), mounted to `/data` in the container.
  88. # The `matrix_sygnal_apps` paths need to use the in-container path (`/data`).
  89. # To install these files via the playbook, one can use the `matrix-aux` role.
  90. # Examples and more details are available in `docs/configuring-playbook-sygnal.md`.
  91. matrix_sygnal_apps: []
  92. matrix_sygnal_metrics_prometheus_enabled: false
  93. # Default Sygnal configuration template which covers the generic use case.
  94. # You can customize it by controlling the various variables inside it.
  95. #
  96. # For a more advanced customization, you can extend the default (see `matrix_sygnal_configuration_extension_yaml`)
  97. # or completely replace this variable with your own template.
  98. matrix_sygnal_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  99. matrix_sygnal_configuration_extension_yaml: |
  100. # Your custom YAML configuration for Sygnal goes here.
  101. # This configuration extends the default starting configuration (`matrix_sygnal_configuration_yaml`).
  102. #
  103. # You can override individual variables from the default configuration, or introduce new ones.
  104. #
  105. # If you need something more special, you can take full control by
  106. # completely redefining `matrix_sygnal_configuration_yaml`.
  107. #
  108. # Example configuration extension follows:
  109. # metrics:
  110. # opentracing:
  111. # enabled: true
  112. matrix_sygnal_configuration_extension: "{{ matrix_sygnal_configuration_extension_yaml | from_yaml if matrix_sygnal_configuration_extension_yaml | from_yaml is mapping else {} }}"
  113. # Holds the final sygnal configuration (a combination of the default and its extension).
  114. # You most likely don't need to touch this variable. Instead, see `matrix_sygnal_configuration_yaml`.
  115. matrix_sygnal_configuration: "{{ matrix_sygnal_configuration_yaml | from_yaml | combine(matrix_sygnal_configuration_extension, recursive=True) }}"
  116. # matrix_sygnal_restart_necessary controls whether the service
  117. # will be restarted (when true) or merely started (when false) by the
  118. # systemd service manager role (when conditional restart is enabled).
  119. #
  120. # This value is automatically computed during installation based on whether
  121. # any configuration files, the systemd service file, or the container image changed.
  122. # The default of `false` means "no restart needed" — appropriate when the role's
  123. # installation tasks haven't run (e.g., due to --tags skipping them).
  124. matrix_sygnal_restart_necessary: false