Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

169 строки
8.8 KiB

  1. ---
  2. # mautrix-telegram is a Matrix <-> Telegram bridge
  3. # Project source code URL: https://github.com/mautrix/telegram
  4. matrix_mautrix_telegram_enabled: true
  5. matrix_telegram_lottieconverter_container_image_self_build: false
  6. matrix_telegram_lottieconverter_container_image_self_build_mask_arch: false
  7. matrix_telegram_lottieconverter_docker_repo: "https://mau.dev/tulir/lottieconverter.git"
  8. matrix_telegram_lottieconverter_docker_repo_version: "master"
  9. matrix_telegram_lottieconverter_docker_src_files_path: "{{ matrix_base_data_path }}/lotticonverter/docker-src"
  10. matrix_telegram_lottieconverter_docker_image: "{{ matrix_telegram_lottieconverter_docker_image_name_prefix }}tulir/lottieconverter:alpine-3.16" # needs to be adjusted according to the FROM clause of Dockerfile of mautrix-telegram
  11. matrix_telegram_lottieconverter_docker_image_name_prefix: "{{ 'localhost/' if matrix_telegram_lottieconverter_container_image_self_build else 'dock.mau.dev/' }}"
  12. matrix_mautrix_telegram_container_image_self_build: false
  13. matrix_mautrix_telegram_docker_repo: "https://mau.dev/mautrix/telegram.git"
  14. matrix_mautrix_telegram_docker_repo_version: "{{ 'master' if matrix_mautrix_telegram_version == 'latest' else matrix_mautrix_telegram_version }}"
  15. matrix_mautrix_telegram_docker_src_files_path: "{{ matrix_base_data_path }}/mautrix-telegram/docker-src"
  16. matrix_mautrix_telegram_version: v0.13.0
  17. # See: https://mau.dev/mautrix/telegram/container_registry
  18. matrix_mautrix_telegram_docker_image: "{{ matrix_mautrix_telegram_docker_image_name_prefix }}mautrix/telegram:{{ matrix_mautrix_telegram_version }}"
  19. matrix_mautrix_telegram_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_telegram_container_image_self_build else 'dock.mau.dev/' }}"
  20. matrix_mautrix_telegram_docker_image_force_pull: "{{ matrix_mautrix_telegram_docker_image.endswith(':latest') }}"
  21. matrix_mautrix_telegram_base_path: "{{ matrix_base_data_path }}/mautrix-telegram"
  22. matrix_mautrix_telegram_config_path: "{{ matrix_mautrix_telegram_base_path }}/config"
  23. matrix_mautrix_telegram_data_path: "{{ matrix_mautrix_telegram_base_path }}/data"
  24. matrix_mautrix_telegram_command_prefix: "!tg"
  25. matrix_mautrix_telegram_bridge_permissions: |
  26. {{
  27. {matrix_mautrix_telegram_homeserver_domain: 'full'}
  28. | combine({matrix_admin: 'admin'} if matrix_admin else {})
  29. }}
  30. # Get your own API keys at https://my.telegram.org/apps
  31. matrix_mautrix_telegram_api_id: ''
  32. matrix_mautrix_telegram_api_hash: ''
  33. matrix_mautrix_telegram_bot_token: disabled
  34. # Define the filter-mode
  35. matrix_mautrix_telegram_filter_mode: "blacklist"
  36. # Whether or not the public-facing endpoints should be enabled (web-based login)
  37. matrix_mautrix_telegram_appservice_public_enabled: true
  38. # Mautrix telegram public endpoint to log in to telegram
  39. # Use an uuid so it's not easily discoverable.
  40. # Example: /741a0483-ba17-4682-9900-30bd7269f1cc
  41. matrix_mautrix_telegram_public_endpoint: ''
  42. matrix_mautrix_telegram_homeserver_address: "{{ matrix_homeserver_container_url }}"
  43. matrix_mautrix_telegram_homeserver_domain: '{{ matrix_domain }}'
  44. matrix_mautrix_telegram_appservice_address: 'http://matrix-mautrix-telegram:8080'
  45. matrix_mautrix_telegram_appservice_public_external: 'https://{{ matrix_server_fqn_matrix }}{{ matrix_mautrix_telegram_public_endpoint }}'
  46. matrix_mautrix_telegram_appservice_bot_username: telegrambot
  47. # Specifies the default log level for all bridge loggers.
  48. matrix_mautrix_telegram_logging_level: WARNING
  49. # Whether or not created rooms should have federation enabled.
  50. # If false, created portal rooms will never be federated.
  51. matrix_mautrix_telegram_federate_rooms: true
  52. # Controls whether the matrix-mautrix-telegram container exposes its HTTP port (tcp/8080 in the container).
  53. #
  54. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9006"), or empty string to not expose.
  55. matrix_mautrix_telegram_container_http_host_bind_port: ''
  56. # A list of extra arguments to pass to the container
  57. matrix_mautrix_telegram_container_extra_arguments: []
  58. # List of systemd services that matrix-mautrix-telegram.service depends on.
  59. matrix_mautrix_telegram_systemd_required_services_list: ['docker.service']
  60. # List of systemd services that matrix-mautrix-telegram.service wants
  61. matrix_mautrix_telegram_systemd_wanted_services_list: []
  62. matrix_mautrix_telegram_appservice_token: ''
  63. matrix_mautrix_telegram_homeserver_token: ''
  64. # Database-related configuration fields.
  65. #
  66. # To use SQLite, stick to these defaults.
  67. #
  68. # To use Postgres:
  69. # - change the engine (`matrix_mautrix_telegram_database_engine: 'postgres'`)
  70. # - adjust your database credentials via the `matrix_mautrix_telegram_database_*` variables
  71. matrix_mautrix_telegram_database_engine: 'sqlite'
  72. matrix_mautrix_telegram_sqlite_database_path_local: "{{ matrix_mautrix_telegram_data_path }}/mautrix-telegram.db"
  73. matrix_mautrix_telegram_sqlite_database_path_in_container: "/data/mautrix-telegram.db"
  74. matrix_mautrix_telegram_database_username: 'matrix_mautrix_telegram'
  75. matrix_mautrix_telegram_database_password: 'some-password'
  76. matrix_mautrix_telegram_database_hostname: ''
  77. matrix_mautrix_telegram_database_port: 5432
  78. matrix_mautrix_telegram_database_name: 'matrix_mautrix_telegram'
  79. matrix_mautrix_telegram_database_connection_string: 'postgres://{{ matrix_mautrix_telegram_database_username }}:{{ matrix_mautrix_telegram_database_password }}@{{ matrix_mautrix_telegram_database_hostname }}:{{ matrix_mautrix_telegram_database_port }}/{{ matrix_mautrix_telegram_database_name }}'
  80. matrix_mautrix_telegram_appservice_database: "{{
  81. {
  82. 'sqlite': ('sqlite:///' + matrix_mautrix_telegram_sqlite_database_path_in_container),
  83. 'postgres': matrix_mautrix_telegram_database_connection_string,
  84. }[matrix_mautrix_telegram_database_engine]
  85. }}"
  86. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  87. matrix_mautrix_telegram_login_shared_secret: ''
  88. # Default configuration template which covers the generic use case.
  89. # You can customize it by controlling the various variables inside it.
  90. #
  91. # For a more advanced customization, you can extend the default (see `matrix_mautrix_telegram_configuration_extension_yaml`)
  92. # or completely replace this variable with your own template.
  93. matrix_mautrix_telegram_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  94. matrix_mautrix_telegram_configuration_extension_yaml: |
  95. # Your custom YAML configuration goes here.
  96. # This configuration extends the default starting configuration (`matrix_mautrix_telegram_configuration_yaml`).
  97. #
  98. # You can override individual variables from the default configuration, or introduce new ones.
  99. #
  100. # If you need something more special, you can take full control by
  101. # completely redefining `matrix_mautrix_telegram_configuration_yaml`.
  102. matrix_mautrix_telegram_configuration_extension: "{{ matrix_mautrix_telegram_configuration_extension_yaml | from_yaml if matrix_mautrix_telegram_configuration_extension_yaml | from_yaml is mapping else {} }}"
  103. # Holds the final configuration (a combination of the default and its extension).
  104. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_telegram_configuration_yaml`.
  105. matrix_mautrix_telegram_configuration: "{{ matrix_mautrix_telegram_configuration_yaml | from_yaml | combine(matrix_mautrix_telegram_configuration_extension, recursive=True) }}"
  106. matrix_mautrix_telegram_registration_yaml: |
  107. id: telegram
  108. as_token: "{{ matrix_mautrix_telegram_appservice_token }}"
  109. hs_token: "{{ matrix_mautrix_telegram_homeserver_token }}"
  110. namespaces:
  111. users:
  112. - exclusive: true
  113. regex: '^@telegram_.+:{{ matrix_mautrix_telegram_homeserver_domain | regex_escape }}$'
  114. - exclusive: true
  115. regex: '^@{{ matrix_mautrix_telegram_appservice_bot_username | regex_escape }}:{{ matrix_mautrix_telegram_homeserver_domain | regex_escape }}$'
  116. aliases:
  117. - exclusive: true
  118. regex: '^#telegram_.+:{{ matrix_mautrix_telegram_homeserver_domain | regex_escape }}$'
  119. # See https://github.com/mautrix/signal/issues/43
  120. sender_localpart: _bot_{{ matrix_mautrix_telegram_appservice_bot_username }}
  121. url: {{ matrix_mautrix_telegram_appservice_address }}
  122. rate_limited: false
  123. de.sorunome.msc2409.push_ephemeral: true
  124. matrix_mautrix_telegram_registration: "{{ matrix_mautrix_telegram_registration_yaml | from_yaml }}"
  125. # Templates for defining MXID's and displaynames for users and rooms.
  126. matrix_mautrix_telegram_username_template: 'telegram_{userid}'
  127. matrix_mautrix_telegram_alias_template: 'telegram_{groupname}'
  128. matrix_mautrix_telegram_displayname_template: '{displayname} (Telegram)'
  129. # Enable End-to-bridge encryption
  130. matrix_mautrix_telegram_bridge_encryption_allow: false
  131. matrix_mautrix_telegram_bridge_encryption_default: "{{ matrix_mautrix_telegram_bridge_encryption_allow }}"
  132. matrix_mautrix_telegram_bridge_encryption_key_sharing_allow: "{{ matrix_mautrix_telegram_bridge_encryption_allow }}"