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.
 
 

141 wiersze
6.2 KiB

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