Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

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