Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

132 linhas
6.3 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_base_path: "{{ matrix_base_data_path }}/appservice-discord"
  6. # Get your own keys at https://discordapp.com/developers/applications/me/create
  7. matrix_appservice_discord_client_id: ''
  8. matrix_appservice_discord_bot_token: ''
  9. # Controls whether the Appservice Discord container exposes the Client/Server API port (tcp/9005).
  10. matrix_appservice_discord_container_expose_client_server_api_port: false
  11. # A list of extra arguments to pass to the container
  12. matrix_appservice_discord_container_extra_arguments: []
  13. # List of systemd services that matrix-appservice-discord.service depends on.
  14. matrix_appservice_discord_systemd_required_services_list: ['docker.service']
  15. # List of systemd services that matrix-appservice-discord.service wants
  16. matrix_appservice_discord_systemd_wanted_services_list: []
  17. matrix_appservice_discord_configuration_yaml: |
  18. bridge:
  19. domain: "{{ matrix_domain }}"
  20. homeserverUrl: "{{ matrix_homeserver_url }}"
  21. auth:
  22. clientID: "{{matrix_appservice_discord_client_id}}"
  23. botToken: "{{matrix_appservice_discord_bot_token}}"
  24. database:
  25. filename: "/data/discord.db"
  26. userStorePath: "/data/user-store.db"
  27. roomStorePath: "/data/room-store.db"
  28. matrix_appservice_discord_configuration_extension_yaml: |
  29. # This is a sample of the config file showing all avaliable options.
  30. # Where possible we have documented what they do, and all values are the
  31. # default values.
  32. #
  33. #bridge:
  34. # # Domain part of the bridge, e.g. matrix.org
  35. # domain: "localhost"
  36. # # This should be your publically facing URL because Discord may use it to
  37. # # fetch media from the media store.
  38. # homeserverUrl: "http://localhost:8008"
  39. # # Interval at which to process users in the 'presence queue'. If you have
  40. # # 5 users, one user will be processed every 500 milliseconds according to the
  41. # # value below. This has a minimum value of 250.
  42. # # WARNING: This has a high chance of spamming the homeserver with presence
  43. # # updates since it will send one each time somebody changes state or is online.
  44. # presenceInterval: 500
  45. # # Disable setting presence for 'ghost users' which means Discord users on Matrix
  46. # # will not be shown as away or online.
  47. # disablePresence: false
  48. # # Disable sending typing notifications when somebody on Discord types.
  49. # disableTypingNotifications: false
  50. # # Disable deleting messages on Discord if a message is redacted on Matrix.
  51. # disableDeletionForwarding: false
  52. # # Enable users to bridge rooms using !discord commands. See
  53. # # https://t2bot.io/discord for instructions.
  54. # enableSelfServiceBridging: false
  55. # # Disable sending of read receipts for Matrix events which have been
  56. # # successfully bridged to Discord.
  57. # disableReadReceipts: false
  58. # Authentication configuration for the discord bot.
  59. #auth:
  60. # clientID: "12345"
  61. # botToken: "foobar"
  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: "user-store.db"
  78. # roomStorePath: "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: "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. matrix_appservice_discord_configuration_extension: "{{ matrix_appservice_discord_configuration_extension_yaml|from_yaml if matrix_appservice_discord_configuration_extension_yaml|from_yaml else {} }}"
  119. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"