Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

104 řádky
5.0 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 publically 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. # Enable users to bridge rooms using !discord commands. See
  22. # https://t2bot.io/discord for instructions.
  23. enableSelfServiceBridging: {{ matrix_appservice_discord_bridge_enableSelfServiceBridging|to_json }}
  24. # Disable sending of read receipts for Matrix events which have been
  25. # successfully bridged to Discord.
  26. disableReadReceipts: false
  27. # Disable Join Leave echos from matrix
  28. disableJoinLeaveNotifications: false
  29. # Disable Invite echos from matrix
  30. disableInviteNotifications: false
  31. # Auto-determine the language of code blocks (this can be CPU-intensive)
  32. determineCodeLanguage: false
  33. # Authentication configuration for the discord bot.
  34. auth:
  35. clientID: {{ matrix_appservice_discord_client_id|string|to_json }}
  36. botToken: {{ matrix_appservice_discord_bot_token|to_json }}
  37. # You must enable "Privileged Gateway Intents" in your bot settings on discord.com (e.g. https://discord.com/developers/applications/12345/bot)
  38. # for this to work
  39. usePrivilegedIntents: {{ matrix_appservice_discord_auth_usePrivilegedIntents|to_json }}
  40. logging:
  41. # What level should the logger output to the console at.
  42. console: "warn" #silly, verbose, info, http, warn, error, silent
  43. lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  44. # files:
  45. # - file: "debug.log"
  46. # disable:
  47. # - "PresenceHandler" # Will not capture presence logging
  48. # - file: "warn.log" # Will capture warnings
  49. # level: "warn"
  50. # - file: "botlogs.log" # Will capture logs from DiscordBot
  51. # level: "info"
  52. # enable:
  53. # - "DiscordBot"
  54. database:
  55. # You may either use SQLite or Postgresql for the bridge database, which contains
  56. # important mappings for events and user puppeting configurations.
  57. # Use the filename option for SQLite, or connString for Postgresql.
  58. # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  59. # WARNING: You will almost certainly be fine with sqlite unless your bridge
  60. # is in heavy demand and you suffer from IO slowness.
  61. {% if matrix_appservice_discord_database_engine == 'sqlite' %}
  62. filename: {{ matrix_appservice_discord_database_filename|to_json }}
  63. {% else %}
  64. connString: {{ matrix_appservice_discord_database_connString|to_json }}
  65. {% endif %}
  66. room:
  67. # Set the default visibility of alias rooms, defaults to "public".
  68. # One of: "public", "private"
  69. defaultVisibility: "public"
  70. channel:
  71. # Pattern of the name given to bridged rooms.
  72. # Can use :guild for the guild name and :name for the channel name.
  73. namePattern: "[Discord] :guild :name"
  74. # Changes made to rooms when a channel is deleted.
  75. deleteOptions:
  76. # Prefix the room name with a string.
  77. #namePrefix: "[Deleted]"
  78. # Prefix the room topic with a string.
  79. #topicPrefix: "This room has been deleted"
  80. # Disable people from talking in the room by raising the event PL to 50
  81. disableMessaging: false
  82. # Remove the discord alias from the room.
  83. unsetRoomAlias: true
  84. # Remove the room from the directory.
  85. unlistFromDirectory: true
  86. # Set the room to be unavaliable for joining without an invite.
  87. setInviteOnly: true
  88. # Make all the discord users leave the room.
  89. ghostsLeave: true
  90. limits:
  91. # Delay in milliseconds between discord users joining a room.
  92. roomGhostJoinDelay: 6000
  93. # Lock timeout in milliseconds before sending messages to discord to avoid
  94. # echos. Default is rather high as the lock will most likely time out
  95. # before anyways.
  96. # echos = (Copies of a sent message may arrive from discord before we've
  97. # fininished handling it, causing us to echo it back to the room)
  98. discordSendDelay: 1500
  99. ghosts:
  100. # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
  101. nickPattern: ":nick"
  102. # Pattern for the ghosts username, available is :username, :tag and :id
  103. usernamePattern: ":username#:tag"