Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

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