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.
 
 

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