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

343 行
18 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_beeper_linkedin_homeserver_address | to_json }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_beeper_linkedin_homeserver_domain | to_json }}
  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. # What software is the homeserver running?
  12. # Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
  13. software: standard
  14. # Number of retries for all HTTP requests if the homeserver isn't reachable.
  15. http_retry_count: 4
  16. # The URL to push real-time bridge status to.
  17. # If set, the bridge will make POST requests to this URL whenever a user's Signal connection state changes.
  18. # The bridge will use the appservice as_token to authorize requests.
  19. status_endpoint: null
  20. # Endpoint for reporting per-message status.
  21. message_send_checkpoint_endpoint: null
  22. # Whether asynchronous uploads via MSC2246 should be enabled for media.
  23. # Requires a media repo that supports MSC2246.
  24. async_media: false
  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_beeper_linkedin_appservice_address | to_json }}
  30. # The hostname and port where this appservice should listen.
  31. hostname: 0.0.0.0
  32. port: 29319
  33. # The maximum body size of appservice API requests (from the homeserver) in mebibytes
  34. # Usually 1 is enough, but on high-traffic bridges you might need to increase this to avoid 413s
  35. max_body_size: 1
  36. # The full URI to the database. SQLite and Postgres are supported.
  37. # Format examples:
  38. # SQLite: sqlite:filename.db
  39. # Postgres: postgres://username:password@hostname/dbname
  40. database: {{ matrix_beeper_linkedin_appservice_database_uri | to_json }}
  41. # Additional arguments for asyncpg.create_pool() or sqlite3.connect()
  42. # https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
  43. # https://docs.python.org/3/library/sqlite3.html#sqlite3.connect
  44. # For sqlite, min_size is used as the connection thread pool size and max_size is ignored.
  45. # Additionally, SQLite supports init_commands as an array of SQL queries to run on connect (e.g. to set PRAGMAs).
  46. database_opts:
  47. min_size: 1
  48. max_size: 10
  49. # Provisioning API part of the web server for automated portal creation and fetching information.
  50. # Used by things like mautrix-manager (https://github.com/tulir/mautrix-manager).
  51. provisioning:
  52. # Whether or not the provisioning API should be enabled.
  53. enabled: {{ matrix_beeper_linkedin_provisioning_enabled | to_json }}
  54. # The prefix to use in the provisioning API endpoints.
  55. prefix: /_matrix/provision/v1
  56. # The shared secret to authorize users of the API.
  57. # Set to "generate" to generate and save a new token.
  58. shared_secret: {{ matrix_beeper_linkedin_provisioning_shared_secret | to_json }}
  59. # The unique ID of this appservice.
  60. id: beeper_linkedin
  61. # Username of the appservice bot.
  62. bot_username: {{ matrix_beeper_linkedin_appservice_bot_username | to_json }}
  63. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  64. # to leave display name/avatar as-is.
  65. bot_displayname: {{ matrix_beeper_linkedin_appservice_bot_displayname | to_json(ensure_ascii=False) }}
  66. bot_avatar: {{ matrix_beeper_linkedin_appservice_bot_avatar | to_json }}
  67. # Whether or not to receive ephemeral events via appservice transactions.
  68. # Requires MSC2409 support (i.e. Synapse 1.22+).
  69. # You should disable bridge -> sync_with_custom_puppets when this is enabled.
  70. ephemeral_events: false
  71. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  72. as_token: {{ matrix_beeper_linkedin_appservice_token | to_json }}
  73. hs_token: {{ matrix_beeper_linkedin_homeserver_token | to_json }}
  74. # Segment-compatible analytics endpoint for tracking some events, like provisioning API login and encryption errors.
  75. analytics:
  76. # Hostname of the tracking server. The path is hardcoded to /v1/track
  77. host: api.segment.io
  78. # API key to send with tracking requests. Tracking is disabled if this is null.
  79. token: null
  80. # Optional user ID for tracking events. If null, defaults to using Matrix user ID.
  81. user_id: null
  82. # Prometheus telemetry config. Requires prometheus-client to be installed.
  83. metrics:
  84. enabled: false
  85. listen_port: 8000
  86. # Manhole config.
  87. manhole:
  88. # Whether or not opening the manhole is allowed.
  89. enabled: false
  90. # The path for the unix socket.
  91. path: /var/tmp/linkedin-matrix.manhole
  92. # The list of UIDs who can be added to the whitelist.
  93. # If empty, any UIDs can be specified in the open-manhole command.
  94. whitelist:
  95. - 0
  96. # Bridge config
  97. bridge:
  98. # Localpart template of MXIDs for LinkedIn users.
  99. # {userid} is replaced with the user ID of the LinkedIn user.
  100. username_template: "linkedin_{userid}"
  101. # Settings for creating a space for every user.
  102. space_support:
  103. # Whether or not to enable creating a space per user and inviting the
  104. # user (as well as all of the puppets) to that space.
  105. enable: {{ matrix_beeper_linkedin_bridge_space_support_enable | to_json }}
  106. # The name of the space
  107. name: "LinkedIn"
  108. # Displayname template for LinkedIn users.
  109. # {displayname} is replaced with the display name of the LinkedIn user
  110. # as defined below in displayname_preference.
  111. # Keys available for displayname_preference are also available here.
  112. displayname_template: "{displayname} (LinkedIn)"
  113. # Available keys:
  114. # "name" (full name)
  115. # "first_name"
  116. # "last_name"
  117. displayname_preference:
  118. - name
  119. - first_name
  120. # Whether or not to set the topic on DMs to the user's occupation and a
  121. # link to their profile.
  122. set_topic_on_dms: true
  123. # The prefix for commands. Only required in non-management rooms.
  124. command_prefix: {{ matrix_beeper_linkedin_command_prefix | to_json }}
  125. # Number of chats to sync (and create portals for) on startup/login.
  126. # Set 0 to disable automatic syncing.
  127. initial_chat_sync: 20
  128. # Whether or not the LinkedIn users of logged in Matrix users should be
  129. # invited to private chats when the user sends a message from another client.
  130. invite_own_puppet_to_pm: false
  131. # Whether or not to use /sync to get presence, read receipts and typing notifications
  132. # when double puppeting is enabled
  133. sync_with_custom_puppets: true
  134. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  135. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  136. # and is therefore prone to race conditions.
  137. sync_direct_chat_list: false
  138. # Servers to always allow double puppeting from
  139. double_puppet_server_map: {{ matrix_beeper_linkedin_bridge_double_puppet_server_map | to_json }}
  140. # Allow using double puppeting from any server with a valid client .well-known file.
  141. double_puppet_allow_discovery: false
  142. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  143. #
  144. # If set, custom puppets will be enabled automatically for local users
  145. # instead of users having to find an access token and run `login-matrix`
  146. # manually.
  147. # If using this for other servers than the bridge's server,
  148. # you must also set the URL in the double_puppet_server_map.
  149. login_shared_secret_map: {{ matrix_beeper_linkedin_bridge_login_shared_secret_map | to_json }}
  150. # Whether or not to bridge presence in both directions. LinkedIn allows users not to broadcast
  151. # presence, but then it won't send other users' presence to the client.
  152. presence: {{ matrix_beeper_linkedin_bridge_presence | to_json }}
  153. # Whether or not to update avatars when syncing all contacts at startup.
  154. update_avatar_initial_sync: true
  155. # Whether or not created rooms should have federation enabled.
  156. # If false, created portal rooms will never be federated.
  157. federate_rooms: true
  158. # Whether to explicitly set the avatar and room name for private chat portal rooms.
  159. # If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms.
  160. # If set to `always`, all DM rooms will have explicit names and avatars set.
  161. # If set to `never`, DM rooms will never have names and avatars set.
  162. private_chat_portal_meta: default
  163. # End-to-bridge encryption support options.
  164. #
  165. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  166. encryption:
  167. # Allow encryption, work in group chat rooms with e2ee enabled
  168. allow: {{ matrix_beeper_linkedin_bridge_encryption_allow | to_json }}
  169. # Default to encryption, force-enable encryption in all portals the bridge creates
  170. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  171. default: {{ matrix_beeper_linkedin_bridge_encryption_default | to_json }}
  172. # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
  173. appservice: {{ matrix_beeper_linkedin_bridge_encryption_appservice | to_json }}
  174. # Require encryption, drop any unencrypted messages.
  175. require: {{ matrix_beeper_linkedin_bridge_encryption_require | to_json }}
  176. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  177. # You must use a client that supports requesting keys from other users to use this feature.
  178. allow_key_sharing: {{ matrix_beeper_linkedin_bridge_encryption_key_sharing_allow | to_json }}
  179. # Options for deleting megolm sessions from the bridge.
  180. delete_keys:
  181. # Beeper-specific: delete outbound sessions when hungryserv confirms
  182. # that the user has uploaded the key to key backup.
  183. delete_outbound_on_ack: false
  184. # Don't store outbound sessions in the inbound table.
  185. dont_store_outbound: false
  186. # Ratchet megolm sessions forward after decrypting messages.
  187. ratchet_on_decrypt: false
  188. # Delete fully used keys (index >= max_messages) after decrypting messages.
  189. delete_fully_used_on_decrypt: false
  190. # Delete previous megolm sessions from same device when receiving a new one.
  191. delete_prev_on_new_session: false
  192. # Delete megolm sessions received from a device when the device is deleted.
  193. delete_on_device_delete: false
  194. # Periodically delete megolm sessions when 2x max_age has passed since receiving the session.
  195. periodically_delete_expired: false
  196. # Delete inbound megolm sessions that don't have the received_at field used for
  197. # automatic ratcheting and expired session deletion. This is meant as a migration
  198. # to delete old keys prior to the bridge update.
  199. delete_outdated_inbound: false
  200. # What level of device verification should be required from users?
  201. #
  202. # Valid levels:
  203. # unverified - Send keys to all device in the room.
  204. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  205. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  206. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  207. # Note that creating user signatures from the bridge bot is not currently possible.
  208. # verified - Require manual per-device verification
  209. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  210. verification_levels:
  211. # Minimum level for which the bridge should send keys to when bridging messages from Telegram to Matrix.
  212. receive: unverified
  213. # Minimum level that the bridge should accept for incoming Matrix messages.
  214. send: unverified
  215. # Minimum level that the bridge should require for accepting key requests.
  216. share: cross-signed-tofu
  217. # Options for Megolm room key rotation. These options allow you to
  218. # configure the m.room.encryption event content. See:
  219. # https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
  220. # more information about that event.
  221. rotation:
  222. # Enable custom Megolm room key rotation settings. Note that these
  223. # settings will only apply to rooms created after this option is
  224. # set.
  225. enable_custom: false
  226. # The maximum number of milliseconds a session should be used
  227. # before changing it. The Matrix spec recommends 604800000 (a week)
  228. # as the default.
  229. milliseconds: 604800000
  230. # The maximum number of messages that should be sent with a given a
  231. # session before changing it. The Matrix spec recommends 100 as the
  232. # default.
  233. messages: 100
  234. # Disable rotating keys when a user's devices change?
  235. # You should not enable this option unless you understand all the implications.
  236. disable_device_change_key_rotation: false
  237. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  238. # been sent to LinkedIn.
  239. delivery_receipts: false
  240. # Whether to allow inviting arbitrary mxids to portal rooms
  241. allow_invites: false
  242. # Settings for backfilling messages from LinkedIn.
  243. backfill:
  244. # Whether or not the LinkedIn users of logged in Matrix users should be
  245. # invited to private chats when backfilling history from LinkedIn. This is
  246. # usually needed to prevent rate limits and to allow timestamp massaging.
  247. invite_own_puppet: true
  248. # Maximum number of messages to backfill initially.
  249. # Set to 0 to disable backfilling when creating portal.
  250. initial_limit: 0
  251. # Maximum number of messages to backfill if messages were missed while
  252. # the bridge was disconnected.
  253. # Set to 0 to disable backfilling missed messages.
  254. missed_limit: 1000
  255. # If using double puppeting, should notifications be disabled
  256. # while the initial backfill is in progress?
  257. disable_notifications: false
  258. # If this value is greater than 0, then (on backfill) if the
  259. # conversation's last message was more than this number of hours ago,
  260. # then the conversation will automatically be marked it as read.
  261. unread_hours_threshold: 0
  262. periodic_reconnect:
  263. # TODO needed?
  264. # Interval in seconds in which to automatically reconnect all users.
  265. # This can be used to automatically mitigate the bug where Linkedin stops sending messages.
  266. # Set to -1 to disable periodic reconnections entirely.
  267. interval: -1
  268. # What to do in periodic reconnects. Either "refresh" or "reconnect"
  269. mode: refresh
  270. # Should even disconnected users be reconnected?
  271. always: false
  272. # The number of seconds that a disconnection can last without triggering an automatic re-sync
  273. # and missed message backfilling when reconnecting.
  274. # Set to 0 to always re-sync, or -1 to never re-sync automatically.
  275. resync_max_disconnected_time: 5
  276. # Whether or not temporary disconnections should send notices to the notice room.
  277. # If this is false, disconnections will never send messages and connections will only send
  278. # messages if it was disconnected for more than resync_max_disconnected_time seconds.
  279. temporary_disconnect_notices: true
  280. # Whether or not the bridge should try to "refresh" the connection if a normal reconnection
  281. # attempt fails.
  282. refresh_on_reconnection_fail: false
  283. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  284. # This field will automatically be changed back to false after it,
  285. # except if the config file is not writable.
  286. resend_bridge_info: false
  287. # When using double puppeting, should muted chats be muted in Matrix?
  288. mute_bridging: false
  289. # Whether or not mute status and tags should only be bridged when the portal room is created.
  290. tag_only_on_create: true
  291. # Permissions for using the bridge.
  292. # Permitted values:
  293. # user - Use the bridge with puppeting.
  294. # admin - Use and administrate the bridge.
  295. # Permitted keys:
  296. # * - All Matrix users
  297. # domain - All users on that homeserver
  298. # mxid - Specific user
  299. permissions: {{ matrix_beeper_linkedin_bridge_permissions | to_json }}
  300. # Python logging configuration.
  301. #
  302. # See section 16.7.2 of the Python documentation for more info:
  303. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  304. logging:
  305. version: 1
  306. formatters:
  307. colored:
  308. (): mautrix.util.logging.color.ColorFormatter
  309. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  310. normal:
  311. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  312. handlers:
  313. console:
  314. class: logging.StreamHandler
  315. formatter: colored
  316. loggers:
  317. mau:
  318. level: {{ matrix_beeper_linkedin_logging_level|to_json }}
  319. aiohttp:
  320. level: {{ matrix_beeper_linkedin_logging_level|to_json }}
  321. root:
  322. level: DEBUG
  323. handlers: [console]