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.
 
 

147 wiersze
7.6 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. # The base container network. It will be auto-created by this role if it doesn't exist already.
  34. matrix_sygnal_container_network: "{{ matrix_sygnal_identifier }}"
  35. # A list of additional container networks that the container would be connected to.
  36. # The role does not create these networks, so make sure they already exist.
  37. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  38. matrix_sygnal_container_additional_networks: []
  39. # Controls whether the matrix-sygnal container exposes its HTTP port (tcp/6000 in the container).
  40. #
  41. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:6000"), or empty string to not expose.
  42. matrix_sygnal_container_http_host_bind_port: ''
  43. # matrix_sygnal_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_sygnal_container_labels_additional_labels`.
  47. matrix_sygnal_container_labels_traefik_enabled: true
  48. matrix_sygnal_container_labels_traefik_docker_network: "{{ matrix_sygnal_container_network }}"
  49. matrix_sygnal_container_labels_traefik_hostname: "{{ matrix_sygnal_hostname }}"
  50. # The path prefix must either be `/` or not end with a slash (e.g. `/sygnal`).
  51. matrix_sygnal_container_labels_traefik_path_prefix: "{{ matrix_sygnal_path_prefix }}"
  52. 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 %}"
  53. matrix_sygnal_container_labels_traefik_priority: 0
  54. matrix_sygnal_container_labels_traefik_entrypoints: web-secure
  55. matrix_sygnal_container_labels_traefik_tls: "{{ matrix_sygnal_container_labels_traefik_entrypoints != 'web' }}"
  56. matrix_sygnal_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_sygnal_container_labels_traefik_additional_response_headers_custom`
  59. 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) }}"
  60. matrix_sygnal_container_labels_traefik_additional_response_headers_auto: {}
  61. matrix_sygnal_container_labels_traefik_additional_response_headers_custom: {}
  62. # matrix_sygnal_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_sygnal_container_labels_additional_labels: |
  67. # my.label=1
  68. # another.label="here"
  69. matrix_sygnal_container_labels_additional_labels: ''
  70. # A list of extra arguments to pass to the container
  71. matrix_sygnal_container_extra_arguments: []
  72. # A map (dictionary) of apps instances that this server works with.
  73. #
  74. # Example configuration:
  75. #
  76. # matrix_sygnal_apps:
  77. # com.example.myapp.ios:
  78. # type: apns
  79. # # .. more configuration ..
  80. # com.example.myapp.android:
  81. # type: gcm
  82. # api_key: your_api_key_for_gcm
  83. # # .. more configuration ..
  84. #
  85. # The APNS configuration needs to reference some certificate files.
  86. # One can put these in the `matrix_sygnal_data_path` directory (`/matrix/sygnal/data`), mounted to `/data` in the container.
  87. # The `matrix_sygnal_apps` paths need to use the in-container path (`/data`).
  88. # To install these files via the playbook, one can use the `matrix-aux` role.
  89. # Examples and more details are available in `docs/configuring-playbook-sygnal.md`.
  90. matrix_sygnal_apps: []
  91. matrix_sygnal_metrics_prometheus_enabled: false
  92. # Default Sygnal configuration template which covers the generic use case.
  93. # You can customize it by controlling the various variables inside it.
  94. #
  95. # For a more advanced customization, you can extend the default (see `matrix_sygnal_configuration_extension_yaml`)
  96. # or completely replace this variable with your own template.
  97. matrix_sygnal_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  98. matrix_sygnal_configuration_extension_yaml: |
  99. # Your custom YAML configuration for Sygnal goes here.
  100. # This configuration extends the default starting configuration (`matrix_sygnal_configuration_yaml`).
  101. #
  102. # You can override individual variables from the default configuration, or introduce new ones.
  103. #
  104. # If you need something more special, you can take full control by
  105. # completely redefining `matrix_sygnal_configuration_yaml`.
  106. #
  107. # Example configuration extension follows:
  108. # metrics:
  109. # opentracing:
  110. # enabled: true
  111. matrix_sygnal_configuration_extension: "{{ matrix_sygnal_configuration_extension_yaml | from_yaml if matrix_sygnal_configuration_extension_yaml | from_yaml is mapping else {} }}"
  112. # Holds the final sygnal configuration (a combination of the default and its extension).
  113. # You most likely don't need to touch this variable. Instead, see `matrix_sygnal_configuration_yaml`.
  114. matrix_sygnal_configuration: "{{ matrix_sygnal_configuration_yaml | from_yaml | combine(matrix_sygnal_configuration_extension, recursive=True) }}"
  115. # matrix_sygnal_restart_necessary controls whether the service
  116. # will be restarted (when true) or merely started (when false) by the
  117. # systemd service manager role (when conditional restart is enabled).
  118. #
  119. # This value is automatically computed during installation based on whether
  120. # any configuration files, the systemd service file, or the container image changed.
  121. # The default of `false` means "no restart needed" — appropriate when the role's
  122. # installation tasks haven't run (e.g., due to --tags skipping them).
  123. matrix_sygnal_restart_necessary: false