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.
 
 

125 wiersze
5.2 KiB

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