Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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