Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

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