Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
8.5 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2020 Björn Marten
  3. # SPDX-FileCopyrightText: 2020 David Gnedt
  4. # SPDX-FileCopyrightText: 2021 - 2023 MDAD project contributors
  5. # SPDX-FileCopyrightText: 2021 Ahmad Haghighi
  6. # SPDX-FileCopyrightText: 2021 Béla Becker
  7. # SPDX-FileCopyrightText: 2021 boris runakov
  8. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  9. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  10. # SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
  11. #
  12. # SPDX-License-Identifier: AGPL-3.0-or-later
  13. ---
  14. # matrix-appservice-webhooks is a Matrix <-> webhook bridge
  15. # Project source code URL: https://github.com/redoonetworks/matrix-appservice-webhooks
  16. matrix_appservice_webhooks_enabled: true
  17. matrix_appservice_webhooks_scheme: https
  18. matrix_appservice_webhooks_hostname: ''
  19. matrix_appservice_webhooks_path_prefix: /appservice-webhooks
  20. matrix_appservice_webhooks_container_image_self_build: false
  21. matrix_appservice_webhooks_container_image_self_build_repo: "https://github.com/redoonetworks/matrix-appservice-webhooks"
  22. matrix_appservice_webhooks_container_image_self_build_repo_version: "{{ 'master' if matrix_appservice_webhooks_version == 'latest' else matrix_appservice_webhooks_version }}"
  23. matrix_appservice_webhooks_container_image_self_build_repo_dockerfile_path: "Dockerfile"
  24. matrix_appservice_webhooks_version: v1.0.3-01
  25. matrix_appservice_webhooks_docker_image: "{{ matrix_appservice_webhooks_docker_image_registry_prefix }}redoonetworks/matrix-appservice-webhooks:{{ matrix_appservice_webhooks_version }}"
  26. matrix_appservice_webhooks_docker_image_registry_prefix: "{{ 'localhost/' if matrix_appservice_webhooks_container_image_self_build else matrix_appservice_webhooks_docker_image_registry_prefix_upstream }}"
  27. matrix_appservice_webhooks_docker_image_registry_prefix_upstream: "{{ matrix_appservice_webhooks_docker_image_registry_prefix_upstream_default }}"
  28. matrix_appservice_webhooks_docker_image_registry_prefix_upstream_default: "docker.io/"
  29. matrix_appservice_webhooks_docker_image_force_pull: "{{ matrix_appservice_webhooks_docker_image.endswith(':latest') }}"
  30. matrix_appservice_webhooks_base_path: "{{ matrix_base_data_path }}/appservice-webhooks"
  31. matrix_appservice_webhooks_config_path: "{{ matrix_appservice_webhooks_base_path }}/config"
  32. matrix_appservice_webhooks_data_path: "{{ matrix_appservice_webhooks_base_path }}/data"
  33. matrix_appservice_webhooks_docker_src_files_path: "{{ matrix_appservice_webhooks_base_path }}/docker-src"
  34. # If nginx-proxy is disabled, the bridge itself expects its endpoint to be on its own domain (e.g. "localhost:6789")
  35. matrix_appservice_webhooks_public_endpoint: "{{ matrix_appservice_webhooks_path_prefix }}"
  36. matrix_appservice_webhooks_inbound_uri_prefix: "{{ matrix_appservice_webhooks_scheme }}://{{ matrix_appservice_webhooks_hostname }}{{ matrix_appservice_webhooks_public_endpoint }}"
  37. matrix_appservice_webhooks_bot_name: 'webhookbot'
  38. matrix_appservice_webhooks_user_prefix: '_webhook_'
  39. # Controls the webhooks_PORT and MATRIX_PORT of the installation
  40. matrix_appservice_webhooks_matrix_port: 6789
  41. # Controls whether the appservice-webhooks container exposes its HTTP port (tcp/6789 in the container).
  42. #
  43. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  44. matrix_appservice_webhooks_container_http_host_bind_port: ''
  45. matrix_appservice_webhooks_container_network: ""
  46. matrix_appservice_webhooks_container_additional_networks: "{{ matrix_appservice_webhooks_container_additional_networks_auto + matrix_appservice_webhooks_container_additional_networks_custom }}"
  47. matrix_appservice_webhooks_container_additional_networks_auto: []
  48. matrix_appservice_webhooks_container_additional_networks_custom: []
  49. # matrix_appservice_webhooks_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  50. # See `../templates/labels.j2` for details.
  51. #
  52. # To inject your own other container labels, see `matrix_appservice_webhooks_container_labels_additional_labels`.
  53. matrix_appservice_webhooks_container_labels_traefik_enabled: true
  54. matrix_appservice_webhooks_container_labels_traefik_docker_network: "{{ matrix_appservice_webhooks_container_network }}"
  55. matrix_appservice_webhooks_container_labels_traefik_entrypoints: web-secure
  56. matrix_appservice_webhooks_container_labels_traefik_tls_certResolver: default # noqa var-naming
  57. # Controls whether labels will be added that expose matrix-appservice-webhook's public endpoints
  58. matrix_appservice_webhooks_container_labels_public_endpoint_enabled: true
  59. matrix_appservice_webhooks_container_labels_public_endpoint_hostname: "{{ matrix_appservice_webhooks_hostname }}"
  60. matrix_appservice_webhooks_container_labels_public_endpoint_prefix: "{{ matrix_appservice_webhooks_path_prefix }}"
  61. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_rule: "Host(`{{ matrix_appservice_webhooks_container_labels_public_endpoint_hostname }}`) && PathPrefix(`{{ matrix_appservice_webhooks_path_prefix }}`)"
  62. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_priority: 0
  63. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints: "{{ matrix_appservice_webhooks_container_labels_traefik_entrypoints }}"
  64. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls: "{{ matrix_appservice_webhooks_container_labels_public_endpoint_traefik_entrypoints != 'web' }}"
  65. matrix_appservice_webhooks_container_labels_public_endpoint_traefik_tls_certResolver: "{{ matrix_appservice_webhooks_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  66. # matrix_appservice_webhooks_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  67. # See `../templates/labels.j2` for details.
  68. #
  69. # Example:
  70. # matrix_appservice_webhooks_container_labels_additional_labels: |
  71. # my.label=1
  72. # another.label="here"
  73. matrix_appservice_webhooks_container_labels_additional_labels: ''
  74. # A list of extra arguments to pass to the container
  75. matrix_appservice_webhooks_container_extra_arguments: []
  76. # List of systemd services that matrix-appservice-webhooks.service depends on.
  77. matrix_appservice_webhooks_systemd_required_services_list: "{{ matrix_appservice_webhooks_systemd_required_services_list_default + matrix_appservice_webhooks_systemd_required_services_list_auto + matrix_appservice_webhooks_systemd_required_services_list_custom }}"
  78. matrix_appservice_webhooks_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  79. matrix_appservice_webhooks_systemd_required_services_list_auto: []
  80. matrix_appservice_webhooks_systemd_required_services_list_custom: []
  81. # List of systemd services that matrix-appservice-webhooks.service wants
  82. matrix_appservice_webhooks_systemd_wanted_services_list: []
  83. matrix_appservice_webhooks_homeserver_media_url: "{{ matrix_server_fqn_matrix }}"
  84. matrix_appservice_webhooks_homeserver_url: ""
  85. matrix_appservice_webhooks_homeserver_domain: "{{ matrix_domain }}"
  86. matrix_appservice_webhooks_appservice_url: 'http://matrix-appservice-webhooks'
  87. matrix_appservice_webhooks_appservice_token: ''
  88. matrix_appservice_webhooks_homeserver_token: ''
  89. matrix_appservice_webhooks_id_token: ''
  90. matrix_appservice_webhooks_api_secret: ''
  91. # Valid values: info, verbose
  92. matrix_appservice_webhooks_log_level: 'info'
  93. matrix_appservice_webhooks_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  94. matrix_appservice_webhooks_configuration_extension_yaml: |
  95. #
  96. matrix_appservice_webhooks_configuration_extension: "{{ matrix_appservice_webhooks_configuration_extension_yaml | from_yaml if matrix_appservice_webhooks_configuration_extension_yaml | from_yaml else {} }}"
  97. matrix_appservice_webhooks_configuration: "{{ matrix_appservice_webhooks_configuration_yaml | from_yaml | combine(matrix_appservice_webhooks_configuration_extension, recursive=True) }}"
  98. matrix_appservice_webhooks_registration_yaml: |
  99. id: "{{ matrix_appservice_webhooks_id_token }}"
  100. hs_token: "{{ matrix_appservice_webhooks_homeserver_token }}"
  101. as_token: "{{ matrix_appservice_webhooks_appservice_token }}"
  102. namespaces:
  103. users:
  104. - exclusive: true
  105. regex: '^@{{ matrix_appservice_webhooks_user_prefix | regex_escape }}.*:{{ matrix_domain | regex_escape }}$'
  106. aliases: []
  107. rooms: []
  108. url: "{{ matrix_appservice_webhooks_appservice_url }}:{{ matrix_appservice_webhooks_matrix_port }}"
  109. sender_localpart: _webhook
  110. rate_limited: false
  111. protocols: null
  112. matrix_appservice_webhooks_registration: "{{ matrix_appservice_webhooks_registration_yaml | from_yaml }}"