Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

130 líneas
6.7 KiB

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