Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

101 rader
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 }}
  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 }}
  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 }}
  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. #filename: "/data/discord.db"
  62. connString: "postgresql://matrix_appservice_discord:{{ matrix_additional_databases | selectattr('name', 'equalto', 'matrix_appservice_discord') | map(attribute='pass') | first }}@{{ matrix_postgres_connection_hostname }}/matrix_appservice_discord"
  63. room:
  64. # Set the default visibility of alias rooms, defaults to "public".
  65. # One of: "public", "private"
  66. defaultVisibility: "public"
  67. channel:
  68. # Pattern of the name given to bridged rooms.
  69. # Can use :guild for the guild name and :name for the channel name.
  70. namePattern: "[Discord] :guild :name"
  71. # Changes made to rooms when a channel is deleted.
  72. deleteOptions:
  73. # Prefix the room name with a string.
  74. #namePrefix: "[Deleted]"
  75. # Prefix the room topic with a string.
  76. #topicPrefix: "This room has been deleted"
  77. # Disable people from talking in the room by raising the event PL to 50
  78. disableMessaging: false
  79. # Remove the discord alias from the room.
  80. unsetRoomAlias: true
  81. # Remove the room from the directory.
  82. unlistFromDirectory: true
  83. # Set the room to be unavaliable for joining without an invite.
  84. setInviteOnly: true
  85. # Make all the discord users leave the room.
  86. ghostsLeave: true
  87. limits:
  88. # Delay in milliseconds between discord users joining a room.
  89. roomGhostJoinDelay: 6000
  90. # Lock timeout in milliseconds before sending messages to discord to avoid
  91. # echos. Default is rather high as the lock will most likely time out
  92. # before anyways.
  93. # echos = (Copies of a sent message may arrive from discord before we've
  94. # fininished handling it, causing us to echo it back to the room)
  95. discordSendDelay: 1500
  96. ghosts:
  97. # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
  98. nickPattern: ":nick"
  99. # Pattern for the ghosts username, available is :username, :tag and :id
  100. usernamePattern: ":username#:tag"