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.
 
 
 

244 lines
12 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2022 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. #jinja2: lstrip_blocks: "True"
  6. # Homeserver details.
  7. homeserver:
  8. # The address that this appservice can use to connect to the homeserver.
  9. address: {{ matrix_go_skype_bridge_homeserver_address }}
  10. # The domain of the homeserver (for MXIDs, etc).
  11. domain: {{ matrix_go_skype_bridge_homeserver_domain }}
  12. # If you don’t know what this is, no need to modify(for parse "mention user/reply message, etc")
  13. server_name: matrix.to
  14. # Application service host/registration related details.
  15. # Changing these values requires regeneration of the registration.
  16. appservice:
  17. # The address that the homeserver can use to connect to this appservice.
  18. address: {{ matrix_go_skype_bridge_appservice_address }}
  19. # The hostname and port where this appservice should listen.
  20. hostname: 0.0.0.0
  21. port: 8080
  22. # Database config.
  23. database:
  24. # The database type. "sqlite3" and "postgres" are supported.
  25. type: {{ matrix_go_skype_bridge_appservice_database_type|to_json }}
  26. # The database URI.
  27. # SQLite: File name is enough. https://github.com/mattn/go-sqlite3#connection-string
  28. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  29. uri: {{ matrix_go_skype_bridge_appservice_database_uri|to_json }}
  30. # Maximum number of connections. Mostly relevant for Postgres.
  31. max_open_conns: 20
  32. max_idle_conns: 2
  33. # Settings for provisioning API
  34. provisioning:
  35. # Prefix for the provisioning API paths.
  36. prefix: /_matrix/provision/v1
  37. # Shared secret for authentication. If set to "disable", the provisioning API will be disabled.
  38. shared_secret: disable
  39. # The unique ID of this appservice.
  40. id: skype
  41. # Appservice bot details.
  42. bot:
  43. # Username of the appservice bot.
  44. username: skypebridgebot
  45. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  46. # to leave display name/avatar as-is.
  47. displayname: Skype bridge bot
  48. avatar: mxc://matrix.org/kGQUDQyPiwbRXPFkjoBrPyhC
  49. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  50. as_token: "{{ matrix_go_skype_bridge_appservice_token }}"
  51. hs_token: "{{ matrix_go_skype_bridge_homeserver_token }}"
  52. # Bridge config
  53. bridge:
  54. # Localpart template of MXIDs for Skype users.
  55. # {{ '{{.}}' }} is replaced with the phone number of the Skype user.
  56. username_template: {{ 'skype-{{.}}' }}
  57. # Displayname template for Skype users.
  58. # {{ '{{.Notify}}' }} - nickname set by the Skype user
  59. # {{ '{{.Jid}}' }} - phone number (international format)
  60. # The following variables are also available, but will cause problems on multi-user instances:
  61. # {{ '{{.Name}}' }} - display name from contact list
  62. # {{ '{{.Short}}' }} - short display name from contact list
  63. # To use multiple if's, you need to use: {{ '{{else if .Name}}' }}, for example:
  64. # "{{ '{{if .Notify}}' }}{{ '{{.Notify}}' }}{{ '{{else if .Name}}' }}{{ '{{.Name}}' }}{{ '{{else}}' }}{{ '{{.Jid}}' }}{{ '{{end}}' }} (WA)"
  65. displayname_template: "{{ '{{if .DisplayName}}' }}{{ '{{.DisplayName}}' }}{{ '{{else}}' }}{{ '{{.PersonId}}' }}{{ '{{end}}' }} (Skype)"
  66. # Localpart template for per-user room grouping community IDs.
  67. # On startup, the bridge will try to create these communities, add all of the specific user's
  68. # portals to the community, and invite the Matrix user to it.
  69. # (Note that, by default, non-admins might not have your homeserver's permission to create
  70. # communities.)
  71. # {{ '{{.Localpart}}' }} is the MXID localpart and {{ '{{.Server}}' }} is the MXID server part of the user.
  72. community_template: skype-{{ '{{.Localpart}}' }}={{ '{{.Server}}' }}
  73. # Skype connection timeout in seconds.
  74. connection_timeout: 20
  75. # If Skype doesn't respond within connection_timeout, should the bridge try to fetch the message
  76. # to see if it was actually bridged? Use this if you have problems with sends timing out but actually
  77. # succeeding.
  78. fetch_message_on_timeout: false
  79. # Whether or not the bridge should send a read receipt from the bridge bot when a message has been
  80. # sent to Skype. If fetch_message_on_timeout is enabled, a successful post-timeout fetch will
  81. # trigger a read receipt too.
  82. delivery_receipts: false
  83. # Number of times to regenerate QR code when logging in.
  84. # The regenerated QR code is sent as an edit and essentially multiplies the login timeout (20 seconds)
  85. login_qr_regen_count: 2
  86. # Maximum number of times to retry connecting on connection error.
  87. max_connection_attempts: 3
  88. # Number of seconds to wait between connection attempts.
  89. # Negative numbers are exponential backoff: -connection_retry_delay + 1 + 2^attempts
  90. connection_retry_delay: -1
  91. # Whether or not the bridge should send a notice to the user's management room when it retries connecting.
  92. # If false, it will only report when it stops retrying.
  93. report_connection_retry: true
  94. # Maximum number of seconds to wait for chats to be sent at startup.
  95. # If this is too low and you have lots of chats, it could cause backfilling to fail.
  96. chat_list_wait: 30
  97. # Maximum number of seconds to wait to sync portals before force unlocking message processing.
  98. # If this is too low and you have lots of chats, it could cause backfilling to fail.
  99. portal_sync_wait: 600
  100. # Whether or not to send call start/end notices to Matrix.
  101. call_notices:
  102. start: true
  103. end: true
  104. # Number of chats to sync for new users.
  105. # Since some of the obtained conversations are not the conversations that the user needs to see,
  106. # the actual number of conversations displayed on the Matrix client will be slightly less than the set value
  107. initial_chat_sync_count: 10
  108. # Number of old messages to fill when creating new portal rooms.
  109. initial_history_fill_count: 20
  110. # Whether or not notifications should be turned off while filling initial history.
  111. # Only applicable when using double puppeting.
  112. initial_history_disable_notifications: false
  113. # Maximum number of chats to sync when recovering from downtime.
  114. # Set to -1 to sync all new chats during downtime.
  115. recovery_chat_sync_limit: -1
  116. # Whether or not to sync history when recovering from downtime.
  117. recovery_history_backfill: true
  118. # Maximum number of seconds since last message in chat to skip
  119. # syncing the chat in any case. This setting will take priority
  120. # over both recovery_chat_sync_limit and initial_chat_sync_count.
  121. # Default is 3 days = 259200 seconds
  122. sync_max_chat_age: 259200
  123. # sync contact, Non-martix-standard parameter, defaults to false
  124. sync_contact: false
  125. # Whether or not to sync with custom puppets to receive EDUs that
  126. # are not normally sent to appservices.
  127. sync_with_custom_puppets: true
  128. # Servers to always allow double puppeting from
  129. double_puppet_server_map:
  130. "{{ matrix_go_skype_bridge_homeserver_domain }}": {{ matrix_go_skype_bridge_homeserver_address }}
  131. # Allow using double puppeting from any server with a valid client .well-known file.
  132. double_puppet_allow_discovery: false
  133. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  134. #
  135. # If set, custom puppets will be enabled automatically for local users
  136. # instead of users having to find an access token and run `login-matrix`
  137. # manually.
  138. login_shared_secret_map: {{ matrix_go_skype_bridge_bridge_login_shared_secret_map|to_json }}
  139. # Whether or not to invite own Skype user's Matrix puppet into private
  140. # chat portals when backfilling if needed.
  141. # This always uses the default puppet instead of custom puppets due to
  142. # rate limits and timestamp massaging.
  143. invite_own_puppet_for_backfilling: true
  144. # Whether or not to explicitly set the avatar and room name for private
  145. # chat portal rooms. This can be useful if the previous field works fine,
  146. # but causes room avatar/name bugs.
  147. private_chat_portal_meta: true
  148. # Whether or not thumbnails from Skype should be sent.
  149. # They're disabled by default due to very low resolution.
  150. Skype_thumbnail: false
  151. # Allow invite permission for user. User can invite any bots to room with Skype
  152. # users (private chat and groups)
  153. allow_user_invite: false
  154. # The prefix for commands. Only required in non-management rooms.
  155. command_prefix: "{{ matrix_go_skype_bridge_command_prefix }}"
  156. # End-to-bridge encryption support options. This requires login_shared_secret to be configured
  157. # in order to get a device for the bridge bot.
  158. #
  159. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  160. # application service.
  161. encryption:
  162. # Allow encryption, work in group chat rooms with e2ee enabled
  163. allow: {{ matrix_go_skype_bridge_bridge_encryption_allow|to_json }}
  164. # Default to encryption, force-enable encryption in all portals the bridge creates
  165. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  166. # It is recommended to also set private_chat_portal_meta to true when using this.
  167. default: {{ matrix_go_skype_bridge_bridge_encryption_default|to_json }}
  168. puppet_id:
  169. # when set to true, the matrixid of the contact (puppet) from the bridge to the Matrix will be encrypted into another string
  170. allow: false
  171. # 8 characters
  172. key: '12dsf323'
  173. # Use the username_template prefix. (Warning: At present, username_template cannot be too complicated, otherwise this function may cause unknown errors)
  174. username_template_prefix: 'skype-'
  175. # Permissions for using the bridge.
  176. # Permitted values:
  177. # relaybot - Talk through the relaybot (if enabled), no access otherwise
  178. # user - Access to use the bridge to chat with a Skype account.
  179. # admin - User level and some additional administration tools
  180. # Permitted keys:
  181. # * - All Matrix users
  182. # domain - All users on that homeserver
  183. # mxid - Specific user
  184. permissions: {{ matrix_go_skype_bridge_bridge_permissions|to_json }}
  185. relaybot:
  186. # Whether or not relaybot support is enabled.
  187. enabled: false
  188. # The management room for the bot. This is where all status notifications are posted and
  189. # in this room, you can use `!wa <command>` instead of `!wa relaybot <command>`. Omitting
  190. # the command prefix completely like in user management rooms is not possible.
  191. management: '!qporfwt:example.com'
  192. # List of users to invite to all created rooms that include the relaybot.
  193. invites: []
  194. # The formats to use when sending messages to Skype via the relaybot.
  195. message_formats:
  196. m.text: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"
  197. m.notice: "<b>{{ '{{ .Sender.Displayname }}' }}</b>:: {{ '{{ .Message }}' }}"
  198. m.emote: "* <b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"
  199. m.file: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a file"
  200. m.image: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent an image"
  201. m.audio: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent an audio file"
  202. m.video: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a video"
  203. m.location: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a location"
  204. # Logging config.
  205. logging:
  206. # The directory for log files. Will be created if not found.
  207. directory: ./logs
  208. # Available variables: .Date for the file date and .Index for different log files on the same day.
  209. # empy/null = journal logging only
  210. file_name_format:
  211. # Date format for file names in the Go time format: https://golang.org/pkg/time/#pkg-constants
  212. file_date_format: "2006-01-02"
  213. # Log file permissions.
  214. file_mode: 0600
  215. # Timestamp format for log entries in the Go time format.
  216. timestamp_format: "Jan _2, 2006 15:04:05"
  217. # Minimum severity for log messages.
  218. # Options: debug, info, warn, error, fatal
  219. print_level: {{ matrix_go_skype_bridge_log_level }}