Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

135 řádky
7.6 KiB

  1. # SPDX-FileCopyrightText: 2021 - 2022 Toni Spets
  2. # SPDX-FileCopyrightText: 2022 - 2023 Nikita Chernyi
  3. # SPDX-FileCopyrightText: 2022 - 2025 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  5. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  6. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  7. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  8. #
  9. # SPDX-License-Identifier: AGPL-3.0-or-later
  10. ---
  11. # Heisenbridge is a bouncer-style Matrix IRC bridge
  12. # Project source code URL: https://github.com/hifi/heisenbridge
  13. matrix_heisenbridge_enabled: true
  14. matrix_heisenbridge_scheme: https
  15. matrix_heisenbridge_hostname: "{{ matrix_server_fqn_matrix }}"
  16. matrix_heisenbridge_path_prefix: "/heisenbridge"
  17. # renovate: datasource=docker depName=hif1/heisenbridge
  18. matrix_heisenbridge_version: 1.15.4
  19. matrix_heisenbridge_container_image: "{{ matrix_heisenbridge_container_image_registry_prefix }}hif1/heisenbridge:{{ matrix_heisenbridge_version }}"
  20. matrix_heisenbridge_container_image_registry_prefix: "{{ matrix_heisenbridge_container_image_registry_prefix_upstream }}"
  21. matrix_heisenbridge_container_image_registry_prefix_upstream: "{{ matrix_heisenbridge_container_image_registry_prefix_upstream_default }}"
  22. matrix_heisenbridge_container_image_registry_prefix_upstream_default: "docker.io/"
  23. # Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes one
  24. matrix_heisenbridge_owner: ""
  25. # Enabling identd will bind to host port 113/TCP
  26. matrix_heisenbridge_identd_enabled: false
  27. matrix_heisenbridge_base_path: "{{ matrix_base_data_path }}/heisenbridge"
  28. matrix_heisenbridge_container_network: ""
  29. matrix_heisenbridge_container_additional_networks: "{{ matrix_heisenbridge_container_additional_networks_auto + matrix_heisenbridge_container_additional_networks_custom }}"
  30. matrix_heisenbridge_container_additional_networks_auto: []
  31. matrix_heisenbridge_container_additional_networks_custom: []
  32. # Controls how long to wait for the container to stop gracefully before killing it.
  33. # We use a small value here, because this container does not seem to handle the SIGTERM signal.
  34. matrix_heisenbridge_container_stop_grace_time_seconds: 1
  35. # matrix_heisenbridge_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  36. # See `../templates/labels.j2` for details.
  37. #
  38. # To inject your own other container labels, see `matrix_heisenbridge_container_labels_additional_labels`.
  39. matrix_heisenbridge_container_labels_traefik_enabled: true
  40. matrix_heisenbridge_container_labels_traefik_docker_network: "{{ matrix_heisenbridge_container_network }}"
  41. matrix_heisenbridge_container_labels_traefik_hostname: "{{ matrix_heisenbridge_hostname }}"
  42. matrix_heisenbridge_container_labels_traefik_path_prefix: "{{ matrix_heisenbridge_path_prefix }}"
  43. matrix_heisenbridge_container_labels_traefik_entrypoints: web-secure
  44. matrix_heisenbridge_container_labels_traefik_tls_certResolver: default # noqa var-naming
  45. # Controls if the media router is enabled
  46. matrix_heisenbridge_container_labels_traefik_media_enabled: true
  47. matrix_heisenbridge_container_labels_traefik_media_hostname: "{{ matrix_heisenbridge_container_labels_traefik_hostname }}"
  48. # The path prefix must either be `/` or not end with a slash (e.g. `/heisenbridge`).
  49. matrix_heisenbridge_container_labels_traefik_media_path_prefix: "{{ '' if matrix_heisenbridge_container_labels_traefik_path_prefix == '/' else (matrix_heisenbridge_container_labels_traefik_path_prefix) }}/_heisenbridge/media"
  50. matrix_heisenbridge_container_labels_traefik_media_rule: "Host(`{{ matrix_heisenbridge_container_labels_traefik_media_hostname }}`){% if matrix_heisenbridge_container_labels_traefik_media_path_prefix != '/' %} && PathPrefix(`{{ matrix_heisenbridge_container_labels_traefik_media_path_prefix }}`){% endif %}"
  51. matrix_heisenbridge_container_labels_traefik_media_priority: 0
  52. matrix_heisenbridge_container_labels_traefik_media_entrypoints: "{{ matrix_heisenbridge_container_labels_traefik_entrypoints }}"
  53. matrix_heisenbridge_container_labels_traefik_media_tls: "{{ matrix_heisenbridge_container_labels_traefik_media_entrypoints != 'web' }}"
  54. matrix_heisenbridge_container_labels_traefik_media_tls_certResolver: "{{ matrix_heisenbridge_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  55. # matrix_heisenbridge_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  56. # See `../templates/labels.j2` for details.
  57. #
  58. # Example:
  59. # matrix_heisenbridge_container_labels_additional_labels: |
  60. # my.label=1
  61. # another.label="here"
  62. matrix_heisenbridge_container_labels_additional_labels: ''
  63. # A list of extra arguments to pass to the container
  64. matrix_heisenbridge_container_extra_arguments: []
  65. # List of systemd services that service depends on.
  66. matrix_heisenbridge_systemd_required_services_list: "{{ matrix_heisenbridge_systemd_required_services_list_default + matrix_heisenbridge_systemd_required_services_list_auto + matrix_heisenbridge_systemd_required_services_list_custom }}"
  67. matrix_heisenbridge_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  68. matrix_heisenbridge_systemd_required_services_list_auto: []
  69. matrix_heisenbridge_systemd_required_services_list_custom: []
  70. # List of systemd services that service wants
  71. matrix_heisenbridge_systemd_wanted_services_list: []
  72. matrix_heisenbridge_homeserver_url: ""
  73. matrix_heisenbridge_appservice_token: ''
  74. matrix_heisenbridge_homeserver_token: ''
  75. matrix_heisenbridge_config_media_url: "{{ matrix_heisenbridge_scheme }}://{{ matrix_heisenbridge_hostname }}"
  76. # This matches the hardcoded `DEFAULT_MEDIA_PATH` in Heisenbridge, but uses `matrix_heisenbridge_path_prefix` as the path prefix.
  77. # See: https://github.com/hifi/heisenbridge/blob/7e18a5818f4a8c86cc62e474eee1631d16cb2602/heisenbridge/__main__.py#L66
  78. matrix_heisenbridge_config_media_path: "{{ matrix_heisenbridge_container_labels_traefik_media_path_prefix }}/{server}/{media_id}/{checksum}{filename}"
  79. matrix_heisenbridge_config_media_key: "{{ matrix_heisenbridge_homeserver_token }}"
  80. matrix_heisenbridge_config_displayname: "Heisenbridge"
  81. matrix_heisenbridge_registration_yaml_heisenbridge:
  82. media_url: "{{ matrix_heisenbridge_config_media_url }}"
  83. media_path: "{{ matrix_heisenbridge_config_media_path }}"
  84. media_key: "{{ matrix_heisenbridge_config_media_key }}"
  85. displayname: "{{ matrix_heisenbridge_config_displayname }}"
  86. # Default registration file consumed by both the homeserver and Heisenbridge.
  87. # Besides registration information, it contains configuration (see the Heisenbridge key).
  88. matrix_heisenbridge_registration_yaml:
  89. id: heisenbridge
  90. url: http://matrix-heisenbridge:9898
  91. as_token: "{{ matrix_heisenbridge_appservice_token }}"
  92. hs_token: "{{ matrix_heisenbridge_homeserver_token }}"
  93. rate_limited: false
  94. sender_localpart: heisenbridge
  95. namespaces:
  96. users:
  97. - regex: '@hbirc_.*'
  98. exclusive: true
  99. aliases: []
  100. rooms: []
  101. heisenbridge: "{{ matrix_heisenbridge_registration_yaml_heisenbridge }}"
  102. matrix_heisenbridge_registration: "{{ matrix_heisenbridge_registration_yaml | from_yaml }}"
  103. # matrix_heisenbridge_restart_necessary controls whether the service
  104. # will be restarted (when true) or merely started (when false) by the
  105. # systemd service manager role (when conditional restart is enabled).
  106. #
  107. # This value is automatically computed during installation based on whether
  108. # any configuration files, the systemd service file, or the container image changed.
  109. # The default of `false` means "no restart needed" — appropriate when the role's
  110. # installation tasks haven't run (e.g., due to --tags skipping them).
  111. matrix_heisenbridge_restart_necessary: false