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.
 
 

120 line
5.9 KiB

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