Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

169 строки
8.0 KiB

  1. # matrix-appservice-discord is a Matrix <-> Discord bridge
  2. # See: https://github.com/Half-Shot/matrix-appservice-discord
  3. matrix_appservice_discord_enabled: true
  4. matrix_appservice_discord_docker_image: "halfshot/matrix-appservice-discord:latest"
  5. matrix_appservice_discord_docker_image_force_pull: "{{ matrix_appservice_discord_docker_image.endswith(':latest') }}"
  6. matrix_appservice_discord_base_path: "{{ matrix_base_data_path }}/appservice-discord"
  7. matrix_appservice_discord_config_path: "{{ matrix_base_data_path }}/appservice-discord/config"
  8. matrix_appservice_discord_data_path: "{{ matrix_base_data_path }}/appservice-discord/data"
  9. # Get your own keys at https://discordapp.com/developers/applications/me/create
  10. matrix_appservice_discord_client_id: ''
  11. matrix_appservice_discord_bot_token: ''
  12. matrix_appservice_discord_appservice_token: ''
  13. matrix_appservice_discord_homeserver_token: ''
  14. # Controls whether the matrix-appservice-discord container exposes its HTTP port (tcp/9005 in the container).
  15. #
  16. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9005"), or empty string to not expose.
  17. matrix_appservice_discord_container_http_host_bind_port: ''
  18. # A list of extra arguments to pass to the container
  19. matrix_appservice_discord_container_extra_arguments: []
  20. # List of systemd services that matrix-appservice-discord.service depends on.
  21. matrix_appservice_discord_systemd_required_services_list: ['docker.service']
  22. # List of systemd services that matrix-appservice-discord.service wants
  23. matrix_appservice_discord_systemd_wanted_services_list: []
  24. matrix_appservice_discord_appservice_url: 'http://matrix-appservice-discord:9005'
  25. matrix_appservice_discord_bridge_domain: "{{ matrix_domain }}"
  26. # As of right now, the homeserver URL must be a public URL. See below.
  27. matrix_appservice_discord_bridge_homeserverUrl: "{{ matrix_homeserver_url }}"
  28. matrix_appservice_discord_bridge_disablePresence: false
  29. matrix_appservice_discord_bridge_enableSelfServiceBridging: false
  30. matrix_appservice_discord_configuration_yaml: |
  31. #jinja2: lstrip_blocks: "True"
  32. bridge:
  33. # Domain part of the bridge, e.g. matrix.org
  34. domain: {{ matrix_appservice_discord_bridge_domain }}
  35. # This should be your publically facing URL because Discord may use it to
  36. # fetch media from the media store.
  37. homeserverUrl: {{ matrix_appservice_discord_bridge_homeserverUrl }}
  38. # Interval at which to process users in the 'presence queue'. If you have
  39. # 5 users, one user will be processed every 500 milliseconds according to the
  40. # value below. This has a minimum value of 250.
  41. # WARNING: This has a high chance of spamming the homeserver with presence
  42. # updates since it will send one each time somebody changes state or is online.
  43. presenceInterval: 500
  44. # Disable setting presence for 'ghost users' which means Discord users on Matrix
  45. # will not be shown as away or online.
  46. disablePresence: {{ matrix_appservice_discord_bridge_disablePresence|to_json }}
  47. # Disable sending typing notifications when somebody on Discord types.
  48. disableTypingNotifications: false
  49. # Disable deleting messages on Discord if a message is redacted on Matrix.
  50. disableDeletionForwarding: false
  51. # Enable users to bridge rooms using !discord commands. See
  52. # https://t2bot.io/discord for instructions.
  53. enableSelfServiceBridging: {{ matrix_appservice_discord_bridge_enableSelfServiceBridging|to_json }}
  54. # Disable sending of read receipts for Matrix events which have been
  55. # successfully bridged to Discord.
  56. disableReadReceipts: false
  57. # Disable Join Leave echos from matrix
  58. disableJoinLeaveNotifications: false
  59. # Authentication configuration for the discord bot.
  60. auth:
  61. clientID: {{ matrix_appservice_discord_client_id|string|to_json }}
  62. botToken: {{ matrix_appservice_discord_bot_token }}
  63. logging:
  64. # What level should the logger output to the console at.
  65. console: "warn" #silly, verbose, info, http, warn, error, silent
  66. lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  67. # files:
  68. # - file: "debug.log"
  69. # disable:
  70. # - "PresenceHandler" # Will not capture presence logging
  71. # - file: "warn.log" # Will capture warnings
  72. # level: "warn"
  73. # - file: "botlogs.log" # Will capture logs from DiscordBot
  74. # level: "info"
  75. # enable:
  76. # - "DiscordBot"
  77. database:
  78. userStorePath: "/data/user-store.db"
  79. roomStorePath: "/data/room-store.db"
  80. # You may either use SQLite or Postgresql for the bridge database, which contains
  81. # important mappings for events and user puppeting configurations.
  82. # Use the filename option for SQLite, or connString for Postgresql.
  83. # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  84. # WARNING: You will almost certainly be fine with sqlite unless your bridge
  85. # is in heavy demand and you suffer from IO slowness.
  86. filename: "/data/discord.db"
  87. # connString: "postgresql://user:password@localhost/database_name"
  88. room:
  89. # Set the default visibility of alias rooms, defaults to "public".
  90. # One of: "public", "private"
  91. defaultVisibility: "public"
  92. channel:
  93. # Pattern of the name given to bridged rooms.
  94. # Can use :guild for the guild name and :name for the channel name.
  95. namePattern: "[Discord] :guild :name"
  96. # Changes made to rooms when a channel is deleted.
  97. deleteOptions:
  98. # Prefix the room name with a string.
  99. #namePrefix: "[Deleted]"
  100. # Prefix the room topic with a string.
  101. #topicPrefix: "This room has been deleted"
  102. # Disable people from talking in the room by raising the event PL to 50
  103. disableMessaging: false
  104. # Remove the discord alias from the room.
  105. unsetRoomAlias: true
  106. # Remove the room from the directory.
  107. unlistFromDirectory: true
  108. # Set the room to be unavaliable for joining without an invite.
  109. setInviteOnly: true
  110. # Make all the discord users leave the room.
  111. ghostsLeave: true
  112. limits:
  113. # Delay in milliseconds between discord users joining a room.
  114. roomGhostJoinDelay: 6000
  115. # Delay in milliseconds before sending messages to discord to avoid echos.
  116. # (Copies of a sent message may arrive from discord before we've
  117. # fininished handling it, causing us to echo it back to the room)
  118. discordSendDelay: 750
  119. ghosts:
  120. # Pattern for the ghosts nick, available is :nick, :username, :tag and :id
  121. nickPattern: ":nick"
  122. # Pattern for the ghosts username, available is :username, :tag and :id
  123. usernamePattern: ":username#:tag"
  124. matrix_appservice_discord_configuration_extension_yaml: |
  125. # Your custom YAML configuration goes here.
  126. # This configuration extends the default starting configuration (`matrix_appservice_discord_configuration_yaml`).
  127. #
  128. # You can override individual variables from the default configuration, or introduce new ones.
  129. #
  130. # If you need something more special, you can take full control by
  131. # completely redefining `matrix_appservice_discord_configuration_yaml`.
  132. matrix_appservice_discord_configuration_extension: "{{ matrix_appservice_discord_configuration_extension_yaml|from_yaml if matrix_appservice_discord_configuration_extension_yaml|from_yaml is mapping else {} }}"
  133. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"
  134. matrix_appservice_discord_registration_yaml: |
  135. #jinja2: lstrip_blocks: "True"
  136. id: appservice-discord
  137. as_token: "{{ matrix_appservice_discord_appservice_token }}"
  138. hs_token: "{{ matrix_appservice_discord_homeserver_token }}"
  139. namespaces:
  140. users:
  141. - exclusive: true
  142. regex: '^@_discord_.*'
  143. aliases:
  144. - exclusive: true
  145. regex: '^#_discord_.*'
  146. url: {{ matrix_appservice_discord_appservice_url }}
  147. sender_localpart: _discord_bot
  148. rate_limited: false
  149. protocols:
  150. - discord
  151. matrix_appservice_discord_registration: "{{ matrix_appservice_discord_registration_yaml|from_yaml }}"