Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

156 lines
6.7 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2022 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. #jinja2: lstrip_blocks: "True"
  6. # Homeserver details
  7. homeserver:
  8. # The address that this appservice can use to connect to the homeserver.
  9. address: {{ matrix_mautrix_hangouts_homeserver_address }}
  10. # The domain of the homeserver (for MXIDs, etc).
  11. domain: {{ matrix_mautrix_hangouts_homeserver_domain }}
  12. # Whether or not to verify the SSL certificate of the homeserver.
  13. # Only applies if address starts with https://
  14. verify_ssl: true
  15. # Application service host/registration related details
  16. # Changing these values requires regeneration of the registration.
  17. appservice:
  18. # The address that the homeserver can use to connect to this appservice.
  19. address: {{ matrix_mautrix_hangouts_appservice_address }}
  20. # The hostname and port where this appservice should listen.
  21. hostname: 0.0.0.0
  22. port: 8080
  23. # The maximum body size of appservice API requests (from the homeserver) in mebibytes
  24. # Usually 1 is enough, but on high-traffic bridges you might need to increase this to avoid 413s
  25. max_body_size: 1
  26. # The full URI to the database. SQLite and Postgres are fully supported.
  27. # Other DBMSes supported by SQLAlchemy may or may not work.
  28. # Format examples:
  29. # SQLite: sqlite:///filename.db
  30. # Postgres: postgres://username:password@hostname/dbname
  31. database: {{ matrix_mautrix_hangouts_appservice_database|to_json }}
  32. # The unique ID of this appservice.
  33. id: hangouts
  34. # Username of the appservice bot.
  35. bot_username: {{ matrix_mautrix_hangouts_appservice_bot_username|to_json }}
  36. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  37. # to leave display name/avatar as-is.
  38. bot_displayname: Hangouts bridge bot
  39. bot_avatar: mxc://maunium.net/FBXZnpfORkBEruORbikmleAy
  40. # Authentication tokens for AS <-> HS communication.
  41. as_token: "{{ matrix_mautrix_hangouts_appservice_token }}"
  42. hs_token: "{{ matrix_mautrix_hangouts_homeserver_token }}"
  43. # Prometheus telemetry config. Requires prometheus-client to be installed.
  44. metrics:
  45. enabled: {{ matrix_mautrix_hangouts_metrics_enabled | to_json }}
  46. listen_port: 8000
  47. # Bridge config
  48. bridge:
  49. # Localpart template of MXIDs for Hangouts users.
  50. # {userid} is replaced with the user ID of the Hangouts user.
  51. username_template: "hangouts_{userid}"
  52. # Displayname template for Hangouts users.
  53. # {displayname} is replaced with the display name of the Hangouts user
  54. # as defined below in displayname_preference.
  55. # Keys available for displayname_preference are also available here.
  56. displayname_template: '{full_name} (Hangouts)'
  57. # Available keys:
  58. # "name" (full name)
  59. # "first_name"
  60. # "last_name"
  61. # "nickname"
  62. # "own_nickname" (user-specific!)
  63. displayname_preference:
  64. - name
  65. # The prefix for commands. Only required in non-management rooms.
  66. command_prefix: "{{ matrix_mautrix_hangouts_command_prefix }}"
  67. # Number of chats to sync (and create portals for) on startup/login.
  68. # Maximum 20, set 0 to disable automatic syncing.
  69. initial_chat_sync: 20
  70. # Whether or not the Hangouts users of logged in Matrix users should be
  71. # invited to private chats when the user sends a message from another client.
  72. invite_own_puppet_to_pm: false
  73. # Whether or not to use /sync to get presence, read receipts and typing notifications when using
  74. # your own Matrix account as the Matrix puppet for your Hangouts account.
  75. sync_with_custom_puppets: true
  76. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  77. #
  78. # If set, custom puppets will be enabled automatically for local users
  79. # instead of users having to find an access token and run `login-matrix`
  80. # manually.
  81. login_shared_secret: {{ matrix_mautrix_hangouts_login_shared_secret|to_json }}
  82. # Whether or not to update avatars when syncing all contacts at startup.
  83. update_avatar_initial_sync: true
  84. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  85. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  86. #
  87. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  88. # application service.
  89. encryption:
  90. # Allow encryption, work in group chat rooms with e2ee enabled
  91. allow: {{ matrix_mautrix_hangouts_bridge_encryption_allow|to_json }}
  92. # Default to encryption, force-enable encryption in all portals the bridge creates
  93. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  94. default: {{ matrix_mautrix_hangouts_bridge_encryption_default|to_json }}
  95. # Public website and API configs
  96. web:
  97. # Auth server config
  98. auth:
  99. # Publicly accessible base URL for the login endpoints.
  100. # The prefix below is not implicitly added. This URL and all subpaths should be proxied
  101. # or otherwise pointed to the appservice's webserver to the path specified below (prefix).
  102. # This path should usually include a trailing slash.
  103. # Internal prefix in the appservice web server for the login endpoints.
  104. public: "{{ matrix_homeserver_url }}{{ matrix_mautrix_hangouts_public_endpoint }}/login"
  105. prefix: "{{ matrix_mautrix_hangouts_public_endpoint }}/login"
  106. # Permissions for using the bridge.
  107. # Permitted values:
  108. # user - Use the bridge with puppeting.
  109. # admin - Use and administrate the bridge.
  110. # Permitted keys:
  111. # * - All Matrix users
  112. # domain - All users on that homeserver
  113. # mxid - Specific user
  114. permissions: {{ matrix_mautrix_hangouts_bridge_permissions|to_json }}
  115. # Python logging configuration.
  116. #
  117. # See section 16.7.2 of the Python documentation for more info:
  118. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  119. logging:
  120. version: 1
  121. formatters:
  122. colored:
  123. (): mautrix_hangouts.util.ColorFormatter
  124. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  125. normal:
  126. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  127. handlers:
  128. console:
  129. class: logging.StreamHandler
  130. formatter: colored
  131. loggers:
  132. mau:
  133. level: {{ matrix_mautrix_hangouts_logging_level|to_json }}
  134. hangups:
  135. level: {{ matrix_mautrix_hangouts_logging_level|to_json }}
  136. aiohttp:
  137. level: {{ matrix_mautrix_hangouts_logging_level|to_json }}
  138. root:
  139. level: {{ matrix_mautrix_hangouts_logging_level|to_json }}
  140. handlers: [console]