Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

293 satır
15 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_gmessages_homeserver_address }}
  6. # The domain of the homeserver (also known as server_name, used for MXIDs, etc).
  7. domain: {{ matrix_mautrix_gmessages_homeserver_domain }}
  8. # What software is the homeserver running?
  9. # Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
  10. software: standard
  11. # The URL to push real-time bridge status to.
  12. # If set, the bridge will make POST requests to this URL whenever a user's google messages connection state changes.
  13. # The bridge will use the appservice as_token to authorize requests.
  14. status_endpoint: null
  15. # Endpoint for reporting per-message status.
  16. message_send_checkpoint_endpoint: null
  17. # Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
  18. async_media: false
  19. # Should the bridge use a websocket for connecting to the homeserver?
  20. # The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy,
  21. # mautrix-asmux (deprecated), and hungryserv (proprietary).
  22. websocket: false
  23. # How often should the websocket be pinged? Pinging will be disabled if this is zero.
  24. ping_interval_seconds: 0
  25. # Application service host/registration related details.
  26. # Changing these values requires regeneration of the registration.
  27. appservice:
  28. # The address that the homeserver can use to connect to this appservice.
  29. address: {{ matrix_mautrix_gmessages_appservice_address }}
  30. # The hostname and port where this appservice should listen.
  31. hostname: 0.0.0.0
  32. port: 8080
  33. # Database config.
  34. database:
  35. # The database type. "sqlite3-fk-wal" and "postgres" are supported.
  36. type: postgres
  37. # The database URI.
  38. # SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
  39. # https://github.com/mattn/go-sqlite3#connection-string
  40. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  41. # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
  42. uri: {{ matrix_mautrix_gmessages_appservice_database_uri|to_json }}
  43. # Maximum number of connections. Mostly relevant for Postgres.
  44. max_open_conns: 20
  45. max_idle_conns: 2
  46. # Maximum connection idle time and lifetime before they're closed. Disabled if null.
  47. # Parsed with https://pkg.go.dev/time#ParseDuration
  48. max_conn_idle_time: null
  49. max_conn_lifetime: null
  50. # The unique ID of this appservice.
  51. id: gmessages
  52. # Appservice bot details.
  53. bot:
  54. # Username of the appservice bot.
  55. username: {{ matrix_mautrix_gmessages_appservice_bot_username|to_json }}
  56. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  57. # to leave display name/avatar as-is.
  58. displayname: Google Messages bridge bot
  59. avatar: mxc://maunium.net/yGOdcrJcwqARZqdzbfuxfhzb
  60. # Whether or not to receive ephemeral events via appservice transactions.
  61. # Requires MSC2409 support (i.e. Synapse 1.22+).
  62. ephemeral_events: true
  63. # Should incoming events be handled asynchronously?
  64. # This may be necessary for large public instances with lots of messages going through.
  65. # However, messages will not be guaranteed to be bridged in the same order they were sent in.
  66. async_transactions: false
  67. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  68. as_token: "{{ matrix_mautrix_gmessages_appservice_token }}"
  69. hs_token: "{{ matrix_mautrix_gmessages_homeserver_token }}"
  70. # Segment API key to track some events, like provisioning API login and encryption errors.
  71. segment_key: null
  72. # Optional user_id to use when sending Segment events. If null, defaults to using mxID.
  73. segment_user_id: null
  74. # Prometheus config.
  75. metrics:
  76. # Enable prometheus metrics?
  77. enabled: {{ matrix_mautrix_gmessages_metrics_enabled | to_json }}
  78. # IP and port where the metrics listener should be. The path is always /metrics
  79. listen: 0.0.0.0:8001
  80. google_messages:
  81. # OS name to tell the phone. This is the name that shows up in the paired devices list.
  82. os: mautrix-gmessages
  83. # Browser type to tell the phone. This decides which icon is shown.
  84. # Valid types: OTHER, CHROME, FIREFOX, SAFARI, OPERA, IE, EDGE
  85. browser: OTHER
  86. # Should the bridge aggressively set itself as the active device if the user opens Google Messages in a browser?
  87. # If this is disabled, the user must manually use the `reconnect` command to reactivate the bridge.
  88. aggressive_reconnect: false
  89. # Bridge config
  90. bridge:
  91. # Localpart template of MXIDs for SMS users.
  92. # {{ '{{.}}' }} is replaced with an identifier of the recipient.
  93. username_template: "{{ 'gmessages_{{.}}' }}"
  94. # Displayname template for SMS users.
  95. # {{ '{{.FullName}}' }} - Full name provided by the phone
  96. # {{ '{{.FirstName}}' }} - First name provided by the phone
  97. # {{ '{{.PhoneNumber}}' }} - Formatted phone number provided by the phone
  98. displayname_template: "{{ '{{or .FullName .PhoneNumber}}' }}"
  99. # Should the bridge create a space for each logged-in user and add bridged rooms to it?
  100. personal_filtering_spaces: {{ matrix_mautrix_gmessages_bridge_personal_filtering_spaces | to_json }}
  101. # Should the bridge send a read receipt from the bridge bot when a message has been sent to the phone?
  102. delivery_receipts: false
  103. # Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
  104. message_status_events: false
  105. # Whether the bridge should send error notices via m.notice events when a message fails to bridge.
  106. message_error_notices: true
  107. portal_message_buffer: 128
  108. # Should the bridge update the m.direct account data event when double puppeting is enabled.
  109. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  110. # and is therefore prone to race conditions.
  111. sync_direct_chat_list: false
  112. # Number of chats to sync when connecting to Google Messages.
  113. initial_chat_sync_count: 25
  114. # Backfill settings
  115. backfill:
  116. # Number of messages to backfill in new chats.
  117. initial_limit: 50
  118. # Number of messages to backfill on startup if the last message ID in the chat sync doesn't match the last bridged message.
  119. missed_limit: 100
  120. # Servers to always allow double puppeting from
  121. double_puppet_server_map:
  122. "{{ matrix_mautrix_gmessages_homeserver_domain }}": {{ matrix_mautrix_gmessages_homeserver_address }}
  123. # Allow using double puppeting from any server with a valid client .well-known file.
  124. double_puppet_allow_discovery: false
  125. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  126. #
  127. # If set, double puppeting will be enabled automatically for local users
  128. # instead of users having to find an access token and run `login-matrix`
  129. # manually.
  130. login_shared_secret_map: {{ matrix_mautrix_gmessages_bridge_login_shared_secret_map|to_json }}
  131. # Whether to explicitly set the avatar and room name for private chat portal rooms.
  132. # If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms.
  133. # If set to `always`, all DM rooms will have explicit names and avatars set.
  134. # If set to `never`, DM rooms will never have names and avatars set.
  135. private_chat_portal_meta: default
  136. # Should Matrix m.notice-type messages be bridged?
  137. bridge_notices: true
  138. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  139. # This field will automatically be changed back to false after it, except if the config file is not writable.
  140. resend_bridge_info: false
  141. # When using double puppeting, should muted chats be muted in Matrix?
  142. mute_bridging: {{ matrix_mautrix_gmessages_bridge_mute_bridging | to_json }}
  143. # When using double puppeting, should archived chats be moved to a specific tag in Matrix?
  144. # This can be set to a tag (e.g. m.lowpriority), or null to disable.
  145. archive_tag: null
  146. # Same as above, but for pinned chats. The favorite tag is called m.favourite
  147. pinned_tag: null
  148. # Should mute status and tags only be bridged when the portal room is created?
  149. tag_only_on_create: true
  150. # Whether or not created rooms should have federation enabled.
  151. # If false, created portal rooms will never be federated.
  152. federate_rooms: {{ matrix_mautrix_gmessages_federate_rooms|to_json }}
  153. # Should the bridge never send alerts to the bridge management room?
  154. # These are mostly things like the user being logged out.
  155. disable_bridge_alerts: false
  156. # Send captions in the same message as images. This will send data compatible with both MSC2530 and MSC3552.
  157. # This is currently not supported in most clients.
  158. caption_in_message: false
  159. # The prefix for commands. Only required in non-management rooms.
  160. command_prefix: "!gm"
  161. # Messages sent upon joining a management room.
  162. # Markdown is supported. The defaults are listed below.
  163. management_room_text:
  164. # Sent when joining a room.
  165. welcome: "Hello, I'm a Google Messages bridge bot."
  166. # Sent when joining a management room and the user is already logged in.
  167. welcome_connected: "Use `help` for help."
  168. # Sent when joining a management room and the user is not logged in.
  169. welcome_unconnected: "Use `help` for help or `login` to log in."
  170. # Optional extra text sent when joining a management room.
  171. additional_help: ""
  172. # End-to-bridge encryption support options.
  173. #
  174. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  175. encryption:
  176. # Allow encryption, work in group chat rooms with e2ee enabled
  177. allow: {{ matrix_mautrix_gmessages_bridge_encryption_allow|to_json }}
  178. # Default to encryption, force-enable encryption in all portals the bridge creates
  179. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  180. default: {{ matrix_mautrix_gmessages_bridge_encryption_default|to_json }}
  181. # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
  182. appservice: false
  183. # Require encryption, drop any unencrypted messages.
  184. require: false
  185. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  186. # You must use a client that supports requesting keys from other users to use this feature.
  187. allow_key_sharing: {{ matrix_mautrix_gmessages_bridge_encryption_key_sharing_allow|to_json }}
  188. # Options for deleting megolm sessions from the bridge.
  189. delete_keys:
  190. # Beeper-specific: delete outbound sessions when hungryserv confirms
  191. # that the user has uploaded the key to key backup.
  192. delete_outbound_on_ack: false
  193. # Don't store outbound sessions in the inbound table.
  194. dont_store_outbound: false
  195. # Ratchet megolm sessions forward after decrypting messages.
  196. ratchet_on_decrypt: false
  197. # Delete fully used keys (index >= max_messages) after decrypting messages.
  198. delete_fully_used_on_decrypt: false
  199. # Delete previous megolm sessions from same device when receiving a new one.
  200. delete_prev_on_new_session: false
  201. # Delete megolm sessions received from a device when the device is deleted.
  202. delete_on_device_delete: false
  203. # Periodically delete megolm sessions when 2x max_age has passed since receiving the session.
  204. periodically_delete_expired: false
  205. # Delete inbound megolm sessions that don't have the received_at field used for
  206. # automatic ratcheting and expired session deletion. This is meant as a migration
  207. # to delete old keys prior to the bridge update.
  208. delete_outdated_inbound: false
  209. # What level of device verification should be required from users?
  210. #
  211. # Valid levels:
  212. # unverified - Send keys to all device in the room.
  213. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  214. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  215. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  216. # Note that creating user signatures from the bridge bot is not currently possible.
  217. # verified - Require manual per-device verification
  218. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  219. verification_levels:
  220. # Minimum level for which the bridge should send keys to when bridging messages from SMS to Matrix.
  221. receive: unverified
  222. # Minimum level that the bridge should accept for incoming Matrix messages.
  223. send: unverified
  224. # Minimum level that the bridge should require for accepting key requests.
  225. share: cross-signed-tofu
  226. # Options for Megolm room key rotation. These options allow you to
  227. # configure the m.room.encryption event content. See:
  228. # https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
  229. # more information about that event.
  230. rotation:
  231. # Enable custom Megolm room key rotation settings. Note that these
  232. # settings will only apply to rooms created after this option is
  233. # set.
  234. enable_custom: false
  235. # The maximum number of milliseconds a session should be used
  236. # before changing it. The Matrix spec recommends 604800000 (a week)
  237. # as the default.
  238. milliseconds: 604800000
  239. # The maximum number of messages that should be sent with a given a
  240. # session before changing it. The Matrix spec recommends 100 as the
  241. # default.
  242. messages: 100
  243. # Disable rotating keys when a user's devices change?
  244. # You should not enable this option unless you understand all the implications.
  245. disable_device_change_key_rotation: false
  246. # Settings for provisioning API
  247. provisioning:
  248. # Prefix for the provisioning API paths.
  249. prefix: /_matrix/provision
  250. # Shared secret for authentication. If set to "generate", a random secret will be generated,
  251. # or if set to "disable", the provisioning API will be disabled.
  252. shared_secret: generate
  253. # Permissions for using the bridge.
  254. # Permitted values:
  255. # user - Access to use the bridge to link their own Google Messages on android.
  256. # admin - User level and some additional administration tools
  257. # Permitted keys:
  258. # * - All Matrix users
  259. # domain - All users on that homeserver
  260. # mxid - Specific user
  261. permissions: {{ matrix_mautrix_gmessages_bridge_permissions|to_json }}
  262. # Logging config. See https://github.com/tulir/zeroconfig for details.
  263. logging:
  264. min_level: {{ matrix_mautrix_gmessages_logging_level }}
  265. writers:
  266. - type: stdout
  267. format: pretty-colored