Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

139 lignes
6.3 KiB

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