Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

267 wiersze
12 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 }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_beeper_linkedin_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. # Whether or not the homeserver supports asmux-specific endpoints,
  12. # such as /_matrix/client/unstable/net.maunium.asmux/dms for atomically
  13. # updating m.direct.
  14. asmux: false
  15. # Number of retries for all HTTP requests if the homeserver isn't reachable.
  16. http_retry_count: 4
  17. appservice:
  18. # The address that the homeserver can use to connect to this appservice.
  19. address: {{ matrix_beeper_linkedin_appservice_address }}
  20. # The hostname and port where this appservice should listen.
  21. hostname: 0.0.0.0
  22. port: 29319
  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. Only Postgres is currently supported.
  27. database: {{ matrix_beeper_linkedin_appservice_database_uri|to_json }}
  28. # Additional arguments for asyncpg.create_pool()
  29. # https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
  30. database_opts:
  31. min_size: 5
  32. max_size: 10
  33. # Provisioning API part of the web server for automated portal creation and fetching information.
  34. # Used by things like mautrix-manager (https://github.com/tulir/mautrix-manager).
  35. provisioning:
  36. # Whether or not the provisioning API should be enabled.
  37. enabled: true
  38. # The prefix to use in the provisioning API endpoints.
  39. prefix: /_matrix/provision/v1
  40. # The shared secret to authorize users of the API.
  41. # Set to "generate" to generate and save a new token.
  42. shared_secret: generate
  43. # The unique ID of this appservice.
  44. id: beeper_linkedin
  45. # Appservice bot details.
  46. bot:
  47. # Username of the appservice bot.
  48. username: {{ matrix_beeper_linkedin_appservice_bot_username|to_json }}
  49. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  50. # to leave display name/avatar as-is.
  51. displayname: LinkedIn bridge bot
  52. avatar: mxc://sumnerevans.com/XMtwdeUBnxYvWNFFrfeTSHqB
  53. # Whether or not to receive ephemeral events via appservice transactions.
  54. # Requires MSC2409 support (i.e. Synapse 1.22+).
  55. # You should disable bridge -> sync_with_custom_puppets when this is enabled.
  56. ephemeral_events: false
  57. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  58. as_token: "{{ matrix_beeper_linkedin_appservice_token }}"
  59. hs_token: "{{ matrix_beeper_linkedin_homeserver_token }}"
  60. # Prometheus telemetry config. Requires prometheus-client to be installed.
  61. metrics:
  62. enabled: false
  63. listen_port: 8000
  64. # Manhole config.
  65. manhole:
  66. # Whether or not opening the manhole is allowed.
  67. enabled: false
  68. # The path for the unix socket.
  69. path: /var/tmp/linkedin-matrix.manhole
  70. # The list of UIDs who can be added to the whitelist.
  71. # If empty, any UIDs can be specified in the open-manhole command.
  72. whitelist:
  73. - 0
  74. # Bridge config
  75. bridge:
  76. # Localpart template of MXIDs for LinkedIn users.
  77. # {userid} is replaced with the user ID of the LinkedIn user
  78. username_template: "linkedin_{userid}"
  79. # Settings for creating a space for every user.
  80. space_support:
  81. # Whether or not to enable creating a space per user and inviting the
  82. # user (as well as all of the puppets) to that space.
  83. enable: {{ matrix_beeper_linkedin_bridge_space_support_enable|to_json }}
  84. # The name of the space
  85. name: "LinkedIn"
  86. # Displayname template for LinkedIn users.
  87. # {displayname} is replaced with the display name of the LinkedIn user
  88. # as defined below in displayname_preference.
  89. # Keys available for displayname_preference are also available here.
  90. displayname_template: "{displayname} (LinkedIn)"
  91. # Number of chats to sync (and create portals for) on startup/login.
  92. # Set 0 to disable automatic syncing.
  93. initial_chat_sync: 10
  94. # Whether or not the LinkedIn users of logged in Matrix users should be
  95. # invited to private chats when the user sends a message from another client.
  96. invite_own_puppet_to_pm: false
  97. # Whether or not to use /sync to get presence, read receipts and typing notifications
  98. # when double puppeting is enabled
  99. sync_with_custom_puppets: true
  100. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  101. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  102. # and is therefore prone to race conditions.
  103. sync_direct_chat_list: false
  104. # Servers to always allow double puppeting from
  105. double_puppet_server_map: {}
  106. # example.com: https://example.com
  107. # Allow using double puppeting from any server with a valid client .well-known file.
  108. # Maximum number of seconds since last message in chat to skip
  109. # syncing the chat in any case. This setting will take priority
  110. # over both recovery_chat_sync_limit and initial_chat_sync_count.
  111. # Default is 3 days = 259200 seconds
  112. sync_max_chat_age: 259200
  113. # Whether or not to sync with custom puppets to receive EDUs that
  114. # are not normally sent to appservices.
  115. sync_with_custom_puppets: true
  116. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  117. #
  118. # If set, custom puppets will be enabled automatically for local users
  119. # instead of users having to find an access token and run `login-matrix`
  120. # manually.
  121. login_shared_secret: {{ matrix_beeper_linkedin_login_shared_secret|to_json }}
  122. # Allow using double puppeting from any server with a valid client .well-known file.
  123. double_puppet_allow_discovery: false
  124. # Whether or not to bridge presence in both directions. LinkedIn allows users not to broadcast
  125. # presence, but then it won't send other users' presence to the client.
  126. presence: {{ matrix_beeper_linkedin_bridge_presence|to_json }}
  127. # Whether or not to update avatars when syncing all contacts at startup.
  128. update_avatar_initial_sync: true
  129. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  130. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  131. #
  132. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  133. # application service.
  134. encryption:
  135. # Allow encryption, work in group chat rooms with e2ee enabled
  136. allow: false
  137. # Default to encryption, force-enable encryption in all portals the bridge creates
  138. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  139. default: false
  140. # Options for automatic key sharing.
  141. key_sharing:
  142. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  143. # You must use a client that supports requesting keys from other users to use this feature.
  144. allow: false
  145. # Require the requesting device to have a valid cross-signing signature?
  146. # This doesn't require that the bridge has verified the device, only that the user has verified it.
  147. # Not yet implemented.
  148. require_cross_signing: false
  149. # Require devices to be verified by the bridge?
  150. # Verification by the bridge is not yet implemented.
  151. require_verification: true
  152. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  153. # been sent to LinkedIn.
  154. delivery_receipts: false
  155. # Whether to allow inviting arbitrary mxids to portal rooms
  156. allow_invites: false
  157. # Settings for backfilling messages from LinkedIn.
  158. backfill:
  159. # Whether or not the LinkedIn users of logged in Matrix users should be
  160. # invited to private chats when backfilling history from LinkedIn. This is
  161. # usually needed to prevent rate limits and to allow timestamp massaging.
  162. invite_own_puppet: true
  163. # Maximum number of messages to backfill initially.
  164. # Set to 0 to disable backfilling when creating portal.
  165. initial_limit: 0
  166. # Maximum number of messages to backfill if messages were missed while
  167. # the bridge was disconnected.
  168. # Set to 0 to disable backfilling missed messages.
  169. missed_limit: 1000
  170. # If using double puppeting, should notifications be disabled
  171. # while the initial backfill is in progress?
  172. disable_notifications: false
  173. periodic_reconnect:
  174. # TODO needed?
  175. # Interval in seconds in which to automatically reconnect all users.
  176. # This can be used to automatically mitigate the bug where Linkedin stops sending messages.
  177. # Set to -1 to disable periodic reconnections entirely.
  178. interval: -1
  179. # What to do in periodic reconnects. Either "refresh" or "reconnect"
  180. mode: refresh
  181. # Should even disconnected users be reconnected?
  182. always: false
  183. # The number of seconds that a disconnection can last without triggering an automatic re-sync
  184. # and missed message backfilling when reconnecting.
  185. # Set to 0 to always re-sync, or -1 to never re-sync automatically.
  186. resync_max_disconnected_time: 5
  187. # Whether or not temporary disconnections should send notices to the notice room.
  188. # If this is false, disconnections will never send messages and connections will only send
  189. # messages if it was disconnected for more than resync_max_disconnected_time seconds.
  190. temporary_disconnect_notices: true
  191. # Whether or not the bridge should try to "refresh" the connection if a normal reconnection
  192. # attempt fails.
  193. refresh_on_reconnection_fail: false
  194. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  195. # This field will automatically be changed back to false after it,
  196. # except if the config file is not writable.
  197. resend_bridge_info: false
  198. # When using double puppeting, should muted chats be muted in Matrix?
  199. mute_bridging: false
  200. # Whether or not mute status and tags should only be bridged when the portal room is created.
  201. tag_only_on_create: true
  202. # The prefix for commands. Only required in non-management rooms.
  203. command_prefix: "{{ matrix_beeper_linkedin_command_prefix }}"
  204. # Permissions for using the bridge.
  205. # Permitted values:
  206. # user - Access to use the bridge to chat with a Linkedin account.
  207. # admin - User level and some additional administration tools
  208. # Permitted keys:
  209. # * - All Matrix users
  210. # domain - All users on that homeserver
  211. # mxid - Specific user
  212. permissions: {{ matrix_beeper_linkedin_bridge_permissions|to_json }}
  213. # Logging config.
  214. logging:
  215. version: 1
  216. formatters:
  217. colored:
  218. (): mautrix.util.logging.color.ColorFormatter
  219. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  220. normal:
  221. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  222. handlers:
  223. console:
  224. class: logging.StreamHandler
  225. formatter: colored
  226. loggers:
  227. mau:
  228. level: {{ matrix_beeper_linkedin_logging_level|to_json }}
  229. paho:
  230. level: {{ matrix_beeper_linkedin_logging_level|to_json }}
  231. aiohttp:
  232. level: {{ matrix_beeper_linkedin_logging_level|to_json }}
  233. root:
  234. level: {{ matrix_beeper_linkedin_logging_level|to_json }}
  235. handlers: [console]