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

151 строка
7.6 KiB

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