Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

277 lines
14 KiB

  1. # Homeserver details
  2. homeserver:
  3. # The address that this appservice can use to connect to the homeserver.
  4. address: {{ matrix_appservice_kakaotalk_homeserver_address | to_json }}
  5. # The domain of the homeserver (for MXIDs, etc).
  6. domain: {{ matrix_appservice_kakaotalk_homeserver_domain | to_json }}
  7. # Whether or not to verify the SSL certificate of the homeserver.
  8. # Only applies if address starts with https://
  9. verify_ssl: true
  10. # Whether or not the homeserver supports asmux-specific endpoints,
  11. # such as /_matrix/client/unstable/net.maunium.asmux/dms for atomically
  12. # updating m.direct.
  13. asmux: false
  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 MQTT 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_appservice_kakaotalk_appservice_address | to_json }}
  30. # The hostname and port where this appservice should listen.
  31. hostname: 0.0.0.0
  32. port: 11115
  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_appservice_kakaotalk_appservice_database | 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. database_opts:
  46. min_size: 5
  47. max_size: 10
  48. # The unique ID of this appservice.
  49. id: appservice-kakaotalk
  50. # Username of the appservice bot.
  51. bot_username: {{ matrix_appservice_kakaotalk_appservice_bot_username | to_json }}
  52. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  53. # to leave display name/avatar as-is.
  54. bot_displayname: KakaoTalk bridge bot
  55. bot_avatar:
  56. # Whether or not to receive ephemeral events via appservice transactions.
  57. # Requires MSC2409 support (i.e. Synapse 1.22+).
  58. # You should disable bridge -> sync_with_custom_puppets when this is enabled.
  59. ephemeral_events: false
  60. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  61. as_token: {{ matrix_appservice_kakaotalk_appservice_token | to_json }}
  62. hs_token: {{ matrix_appservice_kakaotalk_homeserver_token | to_json }}
  63. # Prometheus telemetry config. Requires prometheus-client to be installed.
  64. metrics:
  65. enabled: false
  66. listen_port: 8000
  67. # Manhole config.
  68. manhole:
  69. # Whether or not opening the manhole is allowed.
  70. enabled: false
  71. # The path for the unix socket.
  72. path: /var/tmp/matrix-appservice-kakaotalk.manhole
  73. # The list of UIDs who can be added to the whitelist.
  74. # If empty, any UIDs can be specified in the open-manhole command.
  75. whitelist:
  76. - 0
  77. # Config for things that are directly sent to KakaoTalk.
  78. kakaotalk:
  79. device_name: "KakaoTalk Bridge"
  80. # Bridge config
  81. bridge:
  82. # Localpart template of MXIDs for KakaoTalk users.
  83. # {userid} is replaced with the user ID of the KakaoTalk user.
  84. username_template: "{{ matrix_appservice_kakaotalk_user_prefix }}{userid}"
  85. # Displayname template for KakaoTalk users.
  86. # {displayname} is replaced with the display name of the KakaoTalk user.
  87. displayname_template: "{displayname} (KT)"
  88. # The prefix for commands. Only required in non-management rooms.
  89. command_prefix: {{ matrix_appservice_kakaotalk_command_prefix | to_json }}
  90. # Number of chats to sync (and create portals for) on startup/login.
  91. # Set to 0 to disable automatic syncing, or -1 to sync as much as possible.
  92. initial_chat_sync: 20
  93. # Whether or not the KakaoTalk users of logged in Matrix users should be
  94. # invited to private chats when the user sends a message from another client.
  95. invite_own_puppet_to_pm: false
  96. # Whether or not to use /sync to get presence, read receipts and typing notifications
  97. # when double puppeting is enabled
  98. sync_with_custom_puppets: true
  99. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  100. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  101. # and is therefore prone to race conditions.
  102. sync_direct_chat_list: false
  103. # Servers to always allow double puppeting from
  104. double_puppet_server_map: {}
  105. # Allow using double puppeting from any server with a valid client .well-known file.
  106. double_puppet_allow_discovery: false
  107. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  108. #
  109. # If set, custom puppets will be enabled automatically for local users
  110. # instead of users having to find an access token and run `login-matrix`
  111. # manually.
  112. # If using this for other servers than the bridge's server,
  113. # you must also set the URL in the double_puppet_server_map.
  114. login_shared_secret_map: {{ matrix_appservice_kakaotalk_bridge_login_shared_secret_map | to_json }}
  115. # Whether or not to update avatars when syncing all contacts at startup.
  116. update_avatar_initial_sync: true
  117. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  118. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  119. #
  120. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  121. # application service.
  122. encryption:
  123. # Allow encryption, work in group chat rooms with e2ee enabled
  124. allow: {{ matrix_appservice_kakaotalk_bridge_encryption_allow | to_json }}
  125. # Default to encryption, force-enable encryption in all portals the bridge creates
  126. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  127. default: {{ matrix_appservice_kakaotalk_bridge_encryption_default| to_json }}
  128. # Options for automatic key sharing.
  129. key_sharing:
  130. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  131. # You must use a client that supports requesting keys from other users to use this feature.
  132. allow: false
  133. # Require the requesting device to have a valid cross-signing signature?
  134. # This doesn't require that the bridge has verified the device, only that the user has verified it.
  135. # Not yet implemented.
  136. require_cross_signing: false
  137. # Require devices to be verified by the bridge?
  138. # Verification by the bridge is not yet implemented.
  139. require_verification: true
  140. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  141. # been sent to KakaoTalk.
  142. delivery_receipts: false
  143. # Whether to allow inviting arbitrary mxids to portal rooms
  144. allow_invites: false
  145. # Whether or not created rooms should have federation enabled.
  146. # If false, created portal rooms will never be federated.
  147. federate_rooms: {{ matrix_appservice_kakaotalk_federate_rooms | to_json }}
  148. # Settings for backfilling messages from KakaoTalk.
  149. backfill:
  150. # Whether or not the KakaoTalk users of logged in Matrix users should be
  151. # invited to private chats when backfilling history from KakaoTalk. This is
  152. # usually needed to prevent rate limits and to allow timestamp massaging.
  153. invite_own_puppet: true
  154. # Maximum number of messages to backfill initially.
  155. # Set to 0 to disable backfilling when creating portal, or -1 to backfill as much as possible.
  156. initial_limit: 0
  157. # Maximum number of messages to backfill if messages were missed while
  158. # the bridge was disconnected.
  159. # Set to 0 to disable backfilling missed messages, or -1 to backfill as much as possible.
  160. missed_limit: 1000
  161. # If using double puppeting, should notifications be disabled
  162. # while the initial backfill is in progress?
  163. disable_notifications: false
  164. # The number of seconds that a disconnection can last without triggering an automatic re-sync
  165. # and missed message backfilling when reconnecting.
  166. # Set to 0 to always re-sync, or -1 to never re-sync automatically.
  167. resync_max_disconnected_time: 5
  168. # Should users remain logged in after being disconnected from chatroom updates?
  169. # This is a convenience feature, but might make the bridge look more suspicious to KakaoTalk.
  170. remain_logged_in_on_disconnect: true
  171. # May the bridge restore user logins with session tokens instead of requiring a password?
  172. # This is a convenience feature, but might make the bridge look more suspicious to KakaoTalk.
  173. # Note that password-based login will be tried first for users who have saved their password.
  174. allow_token_relogin: true
  175. # Should the bridge connect users to chatroom updates after a token-based login?
  176. # This will disconnect any KakaoTalk PC/bridge sessions that were started since the last connection.
  177. # This is a convenience feature, but might make the bridge look more suspicious to KakaoTalk.
  178. reconnect_on_token_relogin: true
  179. # Should the bridge do a resync for connected users on startup?
  180. sync_on_startup: true
  181. # Whether or not temporary disconnections should send notices to the notice room.
  182. # If this is false, disconnections will never send messages and connections will only send
  183. # messages if it was disconnected for more than resync_max_disconnected_time seconds.
  184. temporary_disconnect_notices: true
  185. # Disable bridge notices entirely
  186. disable_bridge_notices: false
  187. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  188. # This field will automatically be changed back to false after it,
  189. # except if the config file is not writable.
  190. resend_bridge_info: false
  191. # Whether or not mute status and tags should only be bridged when the portal room is created.
  192. tag_only_on_create: true
  193. # If set to true, downloading media from the CDN will use a plain aiohttp client without the usual headers or
  194. # other configuration. This may be useful if you don't want to use the default proxy for large files.
  195. sandbox_media_download: false
  196. # Permissions for using the bridge.
  197. # Permitted values:
  198. # relay - Allowed to be relayed through the bridge, no access to commands.
  199. # user - Use the bridge with puppeting.
  200. # admin - Use and administrate the bridge.
  201. # Permitted keys:
  202. # * - All Matrix users
  203. # domain - All users on that homeserver
  204. # mxid - Specific user
  205. permissions: {{ matrix_appservice_kakaotalk_bridge_permissions | to_json }}
  206. relay:
  207. # Whether relay mode should be allowed. If allowed, `!kt set-relay` can be used to turn any
  208. # authenticated user into a relaybot for that chat.
  209. enabled: false
  210. # The formats to use when sending messages to KakaoTalk via a relay user.
  211. #
  212. # Available variables:
  213. # $sender_displayname - The display name of the sender (e.g. Example User)
  214. # $sender_username - The username (Matrix ID localpart) of the sender (e.g. exampleuser)
  215. # $sender_mxid - The Matrix ID of the sender (e.g. @exampleuser:example.com)
  216. # $message - The message content
  217. message_formats:
  218. m.text: '<b>$sender_displayname</b>: $message'
  219. m.notice: '<b>$sender_displayname</b>: $message'
  220. m.emote: '* <b>$sender_displayname</b> $message'
  221. m.file: 'File from <b>$sender_displayname</b>: $message'
  222. m.image: 'Image from <b>$sender_displayname</b>: $message'
  223. m.audio: 'Audio from <b>$sender_displayname</b>: $message'
  224. m.video: 'Video from <b>$sender_displayname</b>: $message'
  225. m.location: '<b>$sender_displayname</b> sent a location'
  226. rpc:
  227. connection:
  228. # Either unix or tcp
  229. type: tcp
  230. # Only for type: unix
  231. # path: /rpc/rpc.sock
  232. # Only for type: tcp
  233. host: matrix-appservice-kakaotalk-node
  234. port: 8000
  235. # Python logging configuration.
  236. #
  237. # See section 16.7.2 of the Python documentation for more info:
  238. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  239. logging:
  240. version: 1
  241. formatters:
  242. colored:
  243. (): matrix_appservice_kakaotalk.util.ColorFormatter
  244. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  245. normal:
  246. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  247. handlers:
  248. console:
  249. class: logging.StreamHandler
  250. formatter: colored
  251. loggers:
  252. mau:
  253. level: {{ matrix_appservice_kakaotalk_logging_level | to_json }}
  254. paho:
  255. level: {{ matrix_appservice_kakaotalk_logging_level | to_json }}
  256. aiohttp:
  257. level: {{ matrix_appservice_kakaotalk_logging_level | to_json }}
  258. root:
  259. level: {{ matrix_appservice_kakaotalk_logging_level | to_json }}
  260. handlers: [console]