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ů.
 
 

94 řádky
4.4 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. # Authentication configuration for the discord bot.
  30. auth:
  31. clientID: {{ matrix_appservice_discord_client_id|string|to_json }}
  32. botToken: {{ matrix_appservice_discord_bot_token }}
  33. logging:
  34. # What level should the logger output to the console at.
  35. console: "warn" #silly, verbose, info, http, warn, error, silent
  36. lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  37. # files:
  38. # - file: "debug.log"
  39. # disable:
  40. # - "PresenceHandler" # Will not capture presence logging
  41. # - file: "warn.log" # Will capture warnings
  42. # level: "warn"
  43. # - file: "botlogs.log" # Will capture logs from DiscordBot
  44. # level: "info"
  45. # enable:
  46. # - "DiscordBot"
  47. database:
  48. userStorePath: "/data/user-store.db"
  49. roomStorePath: "/data/room-store.db"
  50. # You may either use SQLite or Postgresql for the bridge database, which contains
  51. # important mappings for events and user puppeting configurations.
  52. # Use the filename option for SQLite, or connString for Postgresql.
  53. # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  54. # WARNING: You will almost certainly be fine with sqlite unless your bridge
  55. # is in heavy demand and you suffer from IO slowness.
  56. filename: "/data/discord.db"
  57. # connString: "postgresql://user:password@localhost/database_name"
  58. room:
  59. # Set the default visibility of alias rooms, defaults to "public".
  60. # One of: "public", "private"
  61. defaultVisibility: "public"
  62. channel:
  63. # Pattern of the name given to bridged rooms.
  64. # Can use :guild for the guild name and :name for the channel name.
  65. namePattern: "[Discord] :guild :name"
  66. # Changes made to rooms when a channel is deleted.
  67. deleteOptions:
  68. # Prefix the room name with a string.
  69. #namePrefix: "[Deleted]"
  70. # Prefix the room topic with a string.
  71. #topicPrefix: "This room has been deleted"
  72. # Disable people from talking in the room by raising the event PL to 50
  73. disableMessaging: false
  74. # Remove the discord alias from the room.
  75. unsetRoomAlias: true
  76. # Remove the room from the directory.
  77. unlistFromDirectory: true
  78. # Set the room to be unavaliable for joining without an invite.
  79. setInviteOnly: true
  80. # Make all the discord users leave the room.
  81. ghostsLeave: true
  82. limits:
  83. # Delay in milliseconds between discord users joining a room.
  84. roomGhostJoinDelay: 6000
  85. # Delay in milliseconds before sending messages to discord to avoid echos.
  86. # (Copies of a sent message may arrive from discord before we've
  87. # fininished handling it, causing us to echo it back to the room)
  88. discordSendDelay: 750
  89. ghosts:
  90. # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
  91. nickPattern: ":nick"
  92. # Pattern for the ghosts username, available is :username, :tag and :id
  93. usernamePattern: ":username#:tag"