Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

196 行
8.6 KiB

  1. # mautrix-hangouts is a Matrix <-> Hangouts bridge
  2. # See: https://github.com/tulir/mautrix-hangouts
  3. matrix_mautrix_hangouts_enabled: true
  4. matrix_mautrix_hangouts_docker_image: "dock.mau.dev/tulir/mautrix-hangouts:latest"
  5. matrix_mautrix_hangouts_docker_image_force_pull: "{{ matrix_mautrix_hangouts_docker_image.endswith(':latest') }}"
  6. matrix_mautrix_hangouts_base_path: "{{ matrix_base_data_path }}/mautrix-hangouts"
  7. matrix_mautrix_hangouts_config_path: "{{ matrix_mautrix_hangouts_base_path }}/config"
  8. matrix_mautrix_hangouts_data_path: "{{ matrix_mautrix_hangouts_base_path }}/data"
  9. matrix_mautrix_hangouts_public_endpoint: '/mautrix-hangouts'
  10. matrix_mautrix_hangouts_homeserver_address: 'http://matrix-synapse:8008'
  11. matrix_mautrix_hangouts_homeserver_domain: '{{ matrix_domain }}'
  12. matrix_mautrix_hangouts_appservice_address: 'http://matrix-mautrix-hangouts:8080'
  13. # A list of extra arguments to pass to the container
  14. matrix_mautrix_hangouts_container_extra_arguments: []
  15. # List of systemd services that matrix-mautrix-hangouts.service depends on.
  16. matrix_mautrix_hangouts_systemd_required_services_list: ['docker.service']
  17. # List of systemd services that matrix-mautrix-hangouts.service wants
  18. matrix_mautrix_hangouts_systemd_wanted_services_list: []
  19. matrix_mautrix_hangouts_appservice_token: ''
  20. matrix_mautrix_hangouts_homeserver_token: ''
  21. # Default mxisd configuration template which covers the generic use case.
  22. # You can customize it by controlling the various variables inside it.
  23. #
  24. # For a more advanced customization, you can extend the default (see `matrix_mautrix_hangouts_configuration_extension_yaml`)
  25. # or completely replace this variable with your own template.
  26. matrix_mautrix_hangouts_configuration_yaml: |
  27. #jinja2: lstrip_blocks: "True"
  28. # Homeserver details
  29. homeserver:
  30. # The address that this appservice can use to connect to the homeserver.
  31. address: {{ matrix_mautrix_hangouts_homeserver_address }}
  32. # The domain of the homeserver (for MXIDs, etc).
  33. domain: {{ matrix_mautrix_hangouts_homeserver_domain }}
  34. # Whether or not to verify the SSL certificate of the homeserver.
  35. # Only applies if address starts with https://
  36. verify_ssl: true
  37. # Application service host/registration related details
  38. # Changing these values requires regeneration of the registration.
  39. appservice:
  40. # The address that the homeserver can use to connect to this appservice.
  41. address: {{ matrix_mautrix_hangouts_appservice_address }}
  42. # The hostname and port where this appservice should listen.
  43. hostname: 0.0.0.0
  44. port: 8080
  45. # The maximum body size of appservice API requests (from the homeserver) in mebibytes
  46. # Usually 1 is enough, but on high-traffic bridges you might need to increase this to avoid 413s
  47. max_body_size: 1
  48. # The full URI to the database. SQLite and Postgres are fully supported.
  49. # Other DBMSes supported by SQLAlchemy may or may not work.
  50. # Format examples:
  51. # SQLite: sqlite:///filename.db
  52. # Postgres: postgres://username:password@hostname/dbname
  53. database: sqlite:////data/mautrix-hangouts.db
  54. # The unique ID of this appservice.
  55. id: hangouts
  56. # Username of the appservice bot.
  57. bot_username: hangoutsbot
  58. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  59. # to leave display name/avatar as-is.
  60. bot_displayname: Hangouts bridge bot
  61. bot_avatar: mxc://maunium.net/FBXZnpfORkBEruORbikmleAy
  62. # Authentication tokens for AS <-> HS communication.
  63. as_token: "{{ matrix_mautrix_hangouts_appservice_token }}"
  64. hs_token: "{{ matrix_mautrix_hangouts_homeserver_token }}"
  65. # Bridge config
  66. bridge:
  67. # Localpart template of MXIDs for Hangouts users.
  68. # {userid} is replaced with the user ID of the Hangouts user.
  69. username_template: "hangouts_{userid}"
  70. # Displayname template for Hangouts users.
  71. # {displayname} is replaced with the display name of the Hangouts user
  72. # as defined below in displayname_preference.
  73. # Keys available for displayname_preference are also available here.
  74. displayname_template: '{full_name} (Hangouts)'
  75. # Available keys:
  76. # "name" (full name)
  77. # "first_name"
  78. # "last_name"
  79. # "nickname"
  80. # "own_nickname" (user-specific!)
  81. displayname_preference:
  82. - name
  83. # The prefix for commands. Only required in non-management rooms.
  84. command_prefix: "!HO"
  85. # Number of chats to sync (and create portals for) on startup/login.
  86. # Maximum 20, set 0 to disable automatic syncing.
  87. initial_chat_sync: 20
  88. # Whether or not the Hangouts users of logged in Matrix users should be
  89. # invited to private chats when the user sends a message from another client.
  90. invite_own_puppet_to_pm: false
  91. # Whether or not to use /sync to get presence, read receipts and typing notifications when using
  92. # your own Matrix account as the Matrix puppet for your Hangouts account.
  93. sync_with_custom_puppets: true
  94. # Whether or not to bridge presence in both directions. Hangouts allows users not to broadcast
  95. # presence, but then it won't send other users' presence to the client.
  96. presence: true
  97. # Public website and API configs
  98. web:
  99. # Auth server config
  100. auth:
  101. # Publicly accessible base URL for the login endpoints.
  102. # The prefix below is not implicitly added. This URL and all subpaths should be proxied
  103. # or otherwise pointed to the appservice's webserver to the path specified below (prefix).
  104. # This path should usually include a trailing slash.
  105. # Internal prefix in the appservice web server for the login endpoints.
  106. public: "{{ matrix_homeserver_url }}{{ matrix_mautrix_hangouts_public_endpoint }}/login"
  107. prefix: "{{ matrix_mautrix_hangouts_public_endpoint }}/login"
  108. # Permissions for using the bridge.
  109. # Permitted values:
  110. # user - Use the bridge with puppeting.
  111. # admin - Use and administrate the bridge.
  112. # Permitted keys:
  113. # * - All Matrix users
  114. # domain - All users on that homeserver
  115. # mxid - Specific user
  116. permissions:
  117. '{{ matrix_mautrix_hangouts_homeserver_domain }}': admin
  118. # Python logging configuration.
  119. #
  120. # See section 16.7.2 of the Python documentation for more info:
  121. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  122. logging:
  123. version: 1
  124. formatters:
  125. colored:
  126. (): mautrix_hangouts.util.ColorFormatter
  127. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  128. normal:
  129. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  130. handlers:
  131. console:
  132. class: logging.StreamHandler
  133. formatter: colored
  134. loggers:
  135. mau:
  136. level: DEBUG
  137. hangups:
  138. level: DEBUG
  139. aiohttp:
  140. level: INFO
  141. root:
  142. level: DEBUG
  143. handlers: [console]
  144. matrix_mautrix_hangouts_configuration_extension_yaml: |
  145. # Your custom YAML configuration goes here.
  146. # This configuration extends the default starting configuration (`matrix_mautrix_hangouts_configuration_yaml`).
  147. #
  148. # You can override individual variables from the default configuration, or introduce new ones.
  149. #
  150. # If you need something more special, you can take full control by
  151. # completely redefining `matrix_mautrix_hangouts_configuration_yaml`.
  152. matrix_mautrix_hangouts_configuration_extension: "{{ matrix_mautrix_hangouts_configuration_extension_yaml|from_yaml if matrix_mautrix_hangouts_configuration_extension_yaml|from_yaml is mapping else {} }}"
  153. # Holds the final configuration (a combination of the default and its extension).
  154. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_hangouts_configuration_yaml`.
  155. matrix_mautrix_hangouts_configuration: "{{ matrix_mautrix_hangouts_configuration_yaml|from_yaml|combine(matrix_mautrix_hangouts_configuration_extension, recursive=True) }}"
  156. matrix_mautrix_hangouts_registration_yaml: |
  157. id: hangouts
  158. as_token: "{{ matrix_mautrix_hangouts_appservice_token }}"
  159. hs_token: "{{ matrix_mautrix_hangouts_homeserver_token }}"
  160. namespaces:
  161. users:
  162. - exclusive: true
  163. regex: '^@hangouts_.+:{{ matrix_mautrix_hangouts_homeserver_domain|regex_escape }}$'
  164. url: {{ matrix_mautrix_hangouts_appservice_address }}
  165. sender_localpart: hangoutsbot
  166. rate_limited: false
  167. matrix_mautrix_hangouts_registration: "{{ matrix_mautrix_hangouts_registration_yaml|from_yaml }}"