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.
 
 

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