Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

126 líneas
6.0 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. bridge:
  7. # Domain part of the bridge, e.g. matrix.org
  8. domain: {{ matrix_appservice_discord_bridge_domain|to_json }}
  9. # This should be your publically facing URL because Discord may use it to
  10. # fetch media from the media store.
  11. homeserverUrl: {{ matrix_appservice_discord_bridge_homeserverUrl|to_json }}
  12. # Interval at which to process users in the 'presence queue'. If you have
  13. # 5 users, one user will be processed every 500 milliseconds according to the
  14. # value below. This has a minimum value of 250.
  15. # WARNING: This has a high chance of spamming the homeserver with presence
  16. # updates since it will send one each time somebody changes state or is online.
  17. presenceInterval: 500
  18. # Disable setting presence for 'ghost users' which means Discord users on Matrix
  19. # will not be shown as away or online.
  20. disablePresence: {{ matrix_appservice_discord_bridge_disablePresence|to_json }}
  21. # Disable sending typing notifications when somebody on Discord types.
  22. disableTypingNotifications: false
  23. # Disable deleting messages on Discord if a message is redacted on Matrix.
  24. disableDeletionForwarding: false
  25. # Disable portal bridging, where Matrix users can search for unbridged Discord
  26. # rooms on their Matrix server.
  27. disablePortalBridging: {{ matrix_appservice_discord_bridge_disablePortalBridging|to_json }}
  28. # Enable users to bridge rooms using !discord commands. See
  29. # https://t2bot.io/discord for instructions.
  30. enableSelfServiceBridging: {{ matrix_appservice_discord_bridge_enableSelfServiceBridging|to_json }}
  31. # Disable sending of read receipts for Matrix events which have been
  32. # successfully bridged to Discord.
  33. disableReadReceipts: false
  34. # Disable Join Leave echos from matrix
  35. disableJoinLeaveNotifications: false
  36. # Disable Invite echos from matrix
  37. disableInviteNotifications: false
  38. # Disable Room Topic echos from matrix
  39. disableRoomTopicNotifications: false
  40. # Auto-determine the language of code blocks (this can be CPU-intensive)
  41. determineCodeLanguage: false
  42. # MXID of an admin user that will be PMd if the bridge experiences problems. Optional
  43. adminMxid: {{ matrix_admin | to_json }}
  44. # The message to send to the bridge admin if the Discord token is not valid
  45. invalidTokenMessage: 'Your Discord bot token seems to be invalid, and the bridge cannot function. Please update it in your bridge settings and restart the bridge'
  46. # Authentication configuration for the discord bot.
  47. auth:
  48. clientID: {{ matrix_appservice_discord_client_id | string|to_json }}
  49. botToken: {{ matrix_appservice_discord_bot_token|to_json }}
  50. # You must enable "Privileged Gateway Intents" in your bot settings on discord.com (e.g. https://discord.com/developers/applications/12345/bot)
  51. # for this to work
  52. usePrivilegedIntents: {{ matrix_appservice_discord_auth_usePrivilegedIntents|to_json }}
  53. logging:
  54. # What level should the logger output to the console at.
  55. console: "warn" #silly, verbose, info, http, warn, error, silent
  56. lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  57. # files:
  58. # - file: "debug.log"
  59. # disable:
  60. # - "PresenceHandler" # Will not capture presence logging
  61. # - file: "warn.log" # Will capture warnings
  62. # level: "warn"
  63. # - file: "botlogs.log" # Will capture logs from DiscordBot
  64. # level: "info"
  65. # enable:
  66. # - "DiscordBot"
  67. database:
  68. # You may either use SQLite or Postgresql for the bridge database, which contains
  69. # important mappings for events and user puppeting configurations.
  70. # Use the filename option for SQLite, or connString for Postgresql.
  71. # If you are migrating, see https://github.com/matrix-org/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  72. # WARNING: You will almost certainly be fine with sqlite unless your bridge
  73. # is in heavy demand and you suffer from IO slowness.
  74. {% if matrix_appservice_discord_database_engine == 'sqlite' %}
  75. filename: {{ matrix_appservice_discord_database_filename|to_json }}
  76. {% else %}
  77. connString: {{ matrix_appservice_discord_database_connString|to_json }}
  78. {% endif %}
  79. room:
  80. # Set the default visibility of alias rooms, defaults to "public".
  81. # One of: "public", "private"
  82. defaultVisibility: "public"
  83. channel:
  84. # Pattern of the name given to bridged rooms.
  85. # Can use :guild for the guild name and :name for the channel name.
  86. namePattern: "[Discord] :guild :name"
  87. # Changes made to rooms when a channel is deleted.
  88. deleteOptions:
  89. # Prefix the room name with a string.
  90. #namePrefix: "[Deleted]"
  91. # Prefix the room topic with a string.
  92. #topicPrefix: "This room has been deleted"
  93. # Disable people from talking in the room by raising the event PL to 50
  94. disableMessaging: false
  95. # Remove the discord alias from the room.
  96. unsetRoomAlias: true
  97. # Remove the room from the directory.
  98. unlistFromDirectory: true
  99. # Set the room to be unavailable for joining without an invite.
  100. setInviteOnly: true
  101. # Make all the discord users leave the room.
  102. ghostsLeave: true
  103. limits:
  104. # Delay in milliseconds between discord users joining a room.
  105. roomGhostJoinDelay: 6000
  106. # Lock timeout in milliseconds before sending messages to discord to avoid
  107. # echos. Default is rather high as the lock will most likely time out
  108. # before anyways.
  109. # echos = (Copies of a sent message may arrive from discord before we've
  110. # fininished handling it, causing us to echo it back to the room)
  111. discordSendDelay: 1500
  112. # Set a maximum of rooms to be bridged.
  113. # roomCount: 20
  114. ghosts:
  115. # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
  116. nickPattern: ":nick"
  117. # Pattern for the ghosts username, available is :username, :tag and :id
  118. usernamePattern: ":username#:tag"
  119. # Prometheus-compatible metrics endpoint
  120. metrics:
  121. enable: false
  122. port: 9001
  123. host: "127.0.0.1"