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

146 строки
6.0 KiB

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