Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

225 righe
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_mautrix_discord_homeserver_address | to_json }}
  6. # Publicly accessible base URL for media, used for avatars in relay mode.
  7. # If not set, the connection address above will be used.
  8. public_address: {{ matrix_mautrix_discord_homeserver_public_address | to_json }}
  9. # The domain of the homeserver (for MXIDs, etc).
  10. domain: {{ matrix_mautrix_discord_homeserver_domain | to_json }}
  11. # Is the homeserver actually mautrix-asmux?
  12. asmux: false
  13. # The URL to push real-time bridge status to.
  14. # If set, the bridge will make POST requests to this URL whenever a user's discord connection state changes.
  15. # The bridge will use the appservice as_token to authorize requests.
  16. status_endpoint: null
  17. # Endpoint for reporting per-message status.
  18. message_send_checkpoint_endpoint: null
  19. # Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
  20. async_media: false
  21. # Application service host/registration related details.
  22. # Changing these values requires regeneration of the registration.
  23. appservice:
  24. # The address that the homeserver can use to connect to this appservice.
  25. address: {{ matrix_mautrix_discord_appservice_address | to_json }}
  26. # The hostname and port where this appservice should listen.
  27. hostname: 0.0.0.0
  28. port: 8080
  29. # Database config.
  30. database:
  31. # The database type. "sqlite3" and "postgres" are supported.
  32. type: {{ matrix_mautrix_discord_appservice_database_type|to_json }}
  33. # The database URI.
  34. # SQLite: File name is enough. https://github.com/mattn/go-sqlite3#connection-string
  35. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  36. # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
  37. uri: {{ matrix_mautrix_discord_appservice_database_uri|to_json }}
  38. # Maximum number of connections. Mostly relevant for Postgres.
  39. max_open_conns: 20
  40. max_idle_conns: 2
  41. # Maximum connection idle time and lifetime before they're closed. Disabled if null.
  42. # Parsed with https://pkg.go.dev/time#ParseDuration
  43. max_conn_idle_time: null
  44. max_conn_lifetime: null
  45. # The unique ID of this appservice.
  46. id: discord
  47. # Appservice bot details.
  48. bot:
  49. # Username of the appservice bot.
  50. username: {{ matrix_mautrix_discord_appservice_bot_username|to_json }}
  51. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  52. # to leave display name/avatar as-is.
  53. displayname: Discord bridge bot
  54. avatar: mxc://maunium.net/nIdEykemnwdisvHbpxflpDlC
  55. # Whether or not to receive ephemeral events via appservice transactions.
  56. # Requires MSC2409 support (i.e. Synapse 1.22+).
  57. ephemeral_events: true
  58. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  59. as_token: {{ matrix_mautrix_discord_appservice_token | to_json }}
  60. hs_token: {{ matrix_mautrix_discord_homeserver_token | to_json }}
  61. # Bridge config
  62. bridge:
  63. # Localpart template of MXIDs for Discord users.
  64. # {{ '{{.}}' }} is replaced with the internal ID of the Discord user.
  65. username_template: "{{ 'discord_{{.}}' }}"
  66. # Displayname template for Discord users. This is also used as the room name in DMs if private_chat_portal_meta is enabled.
  67. # Available variables:
  68. # {{ '{{.ID}}' }} - Internal user ID
  69. # {{ '{{.Username}}' }} - User's displayname on Discord
  70. # {{ '{{.Discriminator}}' }} - The 4 numbers after the name on Discord
  71. # {{ '{{.Bot}}' }} - Whether the user is a bot
  72. # {{ '{{.System}}' }} - Whether the user is an official system user
  73. displayname_template: "{{ '{{.Username}} {{if .Bot}} (bot){{end}}' }}"
  74. # Displayname template for Discord channels (bridged as rooms, or spaces when type=4).
  75. # Available variables:
  76. # {{ '{{.Name}}' }} - Channel name, or user displayname (pre-formatted with displayname_template) in DMs.
  77. # {{ '{{.ParentName}}' }} - Parent channel name (used for categories).
  78. # {{ '{{.GuildName}}' }} - Guild name.
  79. # {{ '{{.NSFW}}' }} - Whether the channel is marked as NSFW.
  80. # {{ '{{.Type}}' }} - Channel type (see values at https://github.com/bwmarrin/discordgo/blob/v0.25.0/structs.go#L251-L267)
  81. channel_name_template: "{{ '{{if or (eq .Type 3) (eq .Type 4)}}{{.Name}}{{else}}#{{.Name}}{{end}}' }}"
  82. # Displayname template for Discord guilds (bridged as spaces).
  83. # Available variables:
  84. # {{ '{{.Name}}' }} - Guild name
  85. guild_name_template: "{{ '{{.Name}}' }}"
  86. # Should the bridge explicitly set the avatar and room name for DM portal rooms?
  87. # This is implicitly enabled in encrypted rooms.
  88. private_chat_portal_meta: false
  89. portal_message_buffer: 128
  90. # Number of private channel portals to create on bridge startup.
  91. # Other portals will be created when receiving messages.
  92. startup_private_channel_create_limit: 5
  93. # Should the bridge send a read receipt from the bridge bot when a message has been sent to Discord?
  94. delivery_receipts: false
  95. # Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
  96. message_status_events: true
  97. # Whether the bridge should send error notices via m.notice events when a message fails to bridge.
  98. message_error_notices: true
  99. # Should the bridge use space-restricted join rules instead of invite-only for guild rooms?
  100. # This can avoid unnecessary invite events in guild rooms when members are synced in.
  101. restricted_rooms: {{ matrix_mautrix_discord_bridge_restricted_rooms|to_json }}
  102. # Should the bridge update the m.direct account data event when double puppeting is enabled.
  103. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  104. # and is therefore prone to race conditions.
  105. sync_direct_chat_list: false
  106. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  107. # This field will automatically be changed back to false after it, except if the config file is not writable.
  108. resend_bridge_info: false
  109. # Should the bridge attempt to completely delete portal rooms when a channel is deleted on Discord?
  110. # If true, the bridge will try to kick Matrix users from the room. Otherwise, the bridge only makes ghosts leave.
  111. delete_portal_on_channel_delete: false
  112. # Whether or not created rooms should have federation enabled.
  113. # If false, created portal rooms will never be federated.
  114. federate_rooms: {{ matrix_mautrix_discord_federate_rooms|to_json }}
  115. # Servers to always allow double puppeting from
  116. double_puppet_server_map:
  117. "{{ matrix_mautrix_discord_homeserver_domain }}": {{ matrix_mautrix_discord_homeserver_address }}
  118. # Allow using double puppeting from any server with a valid client .well-known file.
  119. double_puppet_allow_discovery: false
  120. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  121. #
  122. # If set, double puppeting will be enabled automatically for local users
  123. # instead of users having to find an access token and run `login-matrix`
  124. # manually.
  125. login_shared_secret_map: {{ matrix_mautrix_discord_bridge_login_shared_secret_map|to_json }}
  126. # The prefix for commands. Only required in non-management rooms.
  127. command_prefix: "{{ matrix_mautrix_discord_command_prefix }}"
  128. # Messages sent upon joining a management room.
  129. # Markdown is supported. The defaults are listed below.
  130. management_room_text:
  131. # Sent when joining a room.
  132. welcome: "Hello, I'm a Discord bridge bot."
  133. # Sent when joining a management room and the user is already logged in.
  134. welcome_connected: "Use `help` for help."
  135. # Sent when joining a management room and the user is not logged in.
  136. welcome_unconnected: "Use `help` for help or `login` to log in."
  137. # Optional extra text sent when joining a management room.
  138. additional_help: ""
  139. # End-to-bridge encryption support options.
  140. #
  141. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  142. encryption:
  143. # Allow encryption, work in group chat rooms with e2ee enabled
  144. allow: {{ matrix_mautrix_discord_bridge_encryption_allow|to_json }}
  145. # Default to encryption, force-enable encryption in all portals the bridge creates
  146. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  147. default: {{ matrix_mautrix_discord_bridge_encryption_default|to_json }}
  148. # Require encryption, drop any unencrypted messages.
  149. require: false
  150. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  151. # You must use a client that supports requesting keys from other users to use this feature.
  152. allow_key_sharing: {{ matrix_mautrix_discord_bridge_encryption_key_sharing_allow|to_json }}
  153. # What level of device verification should be required from users?
  154. #
  155. # Valid levels:
  156. # unverified - Send keys to all device in the room.
  157. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  158. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  159. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  160. # Note that creating user signatures from the bridge bot is not currently possible.
  161. # verified - Require manual per-device verification
  162. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  163. verification_levels:
  164. # Minimum level for which the bridge should send keys to when bridging messages from WhatsApp to Matrix.
  165. receive: unverified
  166. # Minimum level that the bridge should accept for incoming Matrix messages.
  167. send: unverified
  168. # Minimum level that the bridge should require for accepting key requests.
  169. share: cross-signed-tofu
  170. # Options for Megolm room key rotation. These options allow you to
  171. # configure the m.room.encryption event content. See:
  172. # https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
  173. # more information about that event.
  174. rotation:
  175. # Enable custom Megolm room key rotation settings. Note that these
  176. # settings will only apply to rooms created after this option is
  177. # set.
  178. enable_custom: false
  179. # The maximum number of milliseconds a session should be used
  180. # before changing it. The Matrix spec recommends 604800000 (a week)
  181. # as the default.
  182. milliseconds: 604800000
  183. # The maximum number of messages that should be sent with a given a
  184. # session before changing it. The Matrix spec recommends 100 as the
  185. # default.
  186. messages: 100
  187. # Settings for provisioning API
  188. provisioning:
  189. # Prefix for the provisioning API paths.
  190. prefix: /_matrix/provision
  191. # Shared secret for authentication. If set to "generate", a random secret will be generated,
  192. # or if set to "disable", the provisioning API will be disabled.
  193. shared_secret: generate
  194. # Permissions for using the bridge.
  195. # Permitted values:
  196. # relay - Talk through the relaybot (if enabled), no access otherwise
  197. # user - Access to use the bridge to chat with a Discord account.
  198. # admin - User level and some additional administration tools
  199. # Permitted keys:
  200. # * - All Matrix users
  201. # domain - All users on that homeserver
  202. # mxid - Specific user
  203. permissions: {{ matrix_mautrix_discord_bridge_permissions|to_json }}
  204. logging:
  205. directory: ./logs
  206. file_name_format: ''
  207. file_date_format: "2006-01-02"
  208. file_mode: 384
  209. timestamp_format: Jan _2, 2006 15:04:05
  210. print_level: {{ matrix_mautrix_discord_logging_level | to_json }}
  211. print_json: false
  212. file_json: false