Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

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