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.
 
 

161 wiersze
7.5 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2021 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2020 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2021 Ahmad Haghighi
  4. # SPDX-FileCopyrightText: 2021 boris runakov
  5. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  6. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  7. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  8. #
  9. # SPDX-License-Identifier: AGPL-3.0-or-later
  10. ---
  11. # matrix-sms-bridge is a Matrix <-> SMS bridge
  12. # Project source code URL: https://github.com/benkuly/matrix-sms-bridge
  13. matrix_sms_bridge_enabled: true
  14. # renovate: datasource=docker depName=folivonet/matrix-sms-bridge
  15. matrix_sms_bridge_version: 0.5.13
  16. matrix_sms_bridge_docker_image: "{{ matrix_sms_bridge_docker_image_registry_prefix }}folivonet/matrix-sms-bridge:{{ matrix_sms_bridge_docker_image_tag }}"
  17. matrix_sms_bridge_docker_image_registry_prefix: "{{ matrix_sms_bridge_docker_image_registry_prefix_upstream }}"
  18. matrix_sms_bridge_docker_image_registry_prefix_upstream: "{{ matrix_sms_bridge_docker_image_registry_prefix_upstream_default }}"
  19. matrix_sms_bridge_docker_image_registry_prefix_upstream_default: "docker.io/"
  20. matrix_sms_bridge_docker_image_tag: "{{ matrix_sms_bridge_version }}"
  21. matrix_sms_bridge_base_path: "{{ matrix_base_data_path }}/matrix-sms-bridge"
  22. matrix_sms_bridge_config_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/config"
  23. matrix_sms_bridge_data_path: "{{ matrix_base_data_path }}/matrix-sms-bridge/data"
  24. matrix_sms_bridge_appservice_token: ''
  25. matrix_sms_bridge_homeserver_token: ''
  26. matrix_sms_bridge_container_http_host_bind_port: ''
  27. matrix_sms_bridge_container_network: ""
  28. matrix_sms_bridge_container_additional_networks: "{{ matrix_sms_bridge_container_additional_networks_auto + matrix_sms_bridge_container_additional_networks_custom }}"
  29. matrix_sms_bridge_container_additional_networks_auto: []
  30. matrix_sms_bridge_container_additional_networks_custom: []
  31. # A list of extra arguments to pass to the container
  32. matrix_sms_bridge_container_extra_arguments: []
  33. # List of systemd services that service depends on.
  34. matrix_sms_bridge_systemd_required_services_list: "{{ matrix_sms_bridge_systemd_required_services_list_default + matrix_sms_bridge_systemd_required_services_list_auto + matrix_sms_bridge_systemd_required_services_list_custom }}"
  35. matrix_sms_bridge_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  36. matrix_sms_bridge_systemd_required_services_list_auto: []
  37. matrix_sms_bridge_systemd_required_services_list_custom: []
  38. # List of systemd services that service wants
  39. matrix_sms_bridge_systemd_wanted_services_list: []
  40. matrix_sms_bridge_appservice_url: 'http://matrix-sms-bridge:8080'
  41. matrix_sms_bridge_homeserver_hostname: ''
  42. matrix_sms_bridge_homeserver_port: ""
  43. matrix_sms_bridge_homserver_domain: "{{ matrix_domain }}"
  44. matrix_sms_bridge_default_room: ''
  45. matrix_sms_bridge_default_region: ''
  46. matrix_sms_bridge_default_timezone: ''
  47. matrix_sms_bridge_single_mode_enabled: false
  48. matrix_sms_bridge_provider_android_baseurl: ''
  49. matrix_sms_bridge_provider_android_username: ''
  50. matrix_sms_bridge_provider_android_password: ''
  51. matrix_sms_bridge_provider_android_truststore_local_path: ''
  52. matrix_sms_bridge_provider_android_truststore_password: ''
  53. matrix_sms_bridge_configuration_yaml: |
  54. #jinja2: lstrip_blocks: True
  55. # Database connection
  56. matrix:
  57. bridge:
  58. sms:
  59. # (optional) SMS messages without a valid token a routed to this room.
  60. # Note that you must invite @smsbot:yourHomeServer to this room.
  61. defaultRoomId: "{{ matrix_sms_bridge_default_room }}"
  62. defaultRegion: "{{ matrix_sms_bridge_default_region }}"
  63. defaultTimeZone: "{{ matrix_sms_bridge_default_timezone }}"
  64. singleModeEnabled: "{{ matrix_sms_bridge_single_mode_enabled }}"
  65. provider:
  66. android:
  67. # (optional) default is disabled
  68. enabled: true
  69. # The url to the android-sms-gateway-server
  70. baseUrl: {{ matrix_sms_bridge_provider_android_baseurl }}
  71. # The username of the gateway
  72. username: {{ matrix_sms_bridge_provider_android_username }}
  73. # The password of the gateway
  74. password: {{ matrix_sms_bridge_provider_android_password }}
  75. # (optional) if you use a self signed certificate, you can add the public key here
  76. {% if matrix_sms_bridge_provider_android_truststore_local_path %}
  77. trustStore:
  78. path: /config/matrix-sms-gateway-server.p12
  79. password: {{ matrix_sms_bridge_provider_android_truststore_password }}
  80. type: PKCS12
  81. {% endif %}
  82. bot:
  83. # The domain-part of matrix-ids. E. g. example.org when your userIds look like @unicorn:example.org
  84. serverName: {{ matrix_sms_bridge_homserver_domain }}
  85. migration:
  86. url: "jdbc:h2:file:/data/database/db"
  87. username: sa
  88. database:
  89. url: "r2dbc:h2:file:////data/database/db"
  90. username: sa
  91. client:
  92. homeServer:
  93. # The hostname of your Homeserver.
  94. hostname: {{ matrix_sms_bridge_homeserver_hostname }}
  95. # (optional) The port of your Homeserver. Default is 443.
  96. port: {{ matrix_sms_bridge_homeserver_port }}
  97. # (optional) Use http or https. Default is true (so uses https).
  98. secure: false
  99. # The token to authenticate against the Homeserver.
  100. token: {{ matrix_sms_bridge_appservice_token }}
  101. appservice:
  102. # A unique token for Homeservers to use to authenticate requests to this application service.
  103. hsToken: {{ matrix_sms_bridge_homeserver_token }}
  104. matrix_sms_bridge_configuration_extension_yaml: |
  105. # Your custom YAML configuration goes here.
  106. # This configuration extends the default starting configuration (`matrix_sms_bridge_configuration_yaml`).
  107. #
  108. # You can override individual variables from the default configuration, or introduce new ones.
  109. #
  110. # If you need something more special, you can take full control by
  111. # completely redefining `matrix_sms_bridge_configuration_yaml`.
  112. matrix_sms_bridge_configuration_extension: "{{ matrix_sms_bridge_configuration_extension_yaml | from_yaml if matrix_sms_bridge_configuration_extension_yaml | from_yaml is mapping else {} }}"
  113. matrix_sms_bridge_configuration: "{{ matrix_sms_bridge_configuration_yaml | from_yaml | combine(matrix_sms_bridge_configuration_extension, recursive=True) }}"
  114. matrix_sms_bridge_registration_yaml: |
  115. id: sms
  116. as_token: "{{ matrix_sms_bridge_appservice_token }}"
  117. hs_token: "{{ matrix_sms_bridge_homeserver_token }}"
  118. namespaces:
  119. users:
  120. - exclusive: true
  121. regex: '^@sms_.+:{{ matrix_sms_bridge_homserver_domain | regex_escape }}$'
  122. aliases:
  123. - exclusive: true
  124. regex: '^#sms_.+:{{ matrix_sms_bridge_homserver_domain | regex_escape }}$'
  125. url: {{ matrix_sms_bridge_appservice_url }}
  126. sender_localpart: smsbot
  127. rate_limited: false
  128. matrix_sms_bridge_registration: "{{ matrix_sms_bridge_registration_yaml | from_yaml }}"
  129. # matrix_sms_bridge_restart_necessary controls whether the service
  130. # will be restarted (when true) or merely started (when false) by the
  131. # systemd service manager role (when conditional restart is enabled).
  132. #
  133. # This value is automatically computed during installation based on whether
  134. # any configuration files, the systemd service file, or the container image changed.
  135. # The default of `false` means "no restart needed" — appropriate when the role's
  136. # installation tasks haven't run (e.g., due to --tags skipping them).
  137. matrix_sms_bridge_restart_necessary: false