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.
 
 

134 rader
6.4 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 matrix-appservice-discord container exposes its HTTP port (tcp/9005 in the container).
  10. #
  11. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9005"), or empty string to not expose.
  12. matrix_appservice_discord_container_http_host_bind_port: ''
  13. # A list of extra arguments to pass to the container
  14. matrix_appservice_discord_container_extra_arguments: []
  15. # List of systemd services that matrix-appservice-discord.service depends on.
  16. matrix_appservice_discord_systemd_required_services_list: ['docker.service']
  17. # List of systemd services that matrix-appservice-discord.service wants
  18. matrix_appservice_discord_systemd_wanted_services_list: []
  19. matrix_appservice_discord_configuration_yaml: |
  20. bridge:
  21. domain: "{{ matrix_domain }}"
  22. homeserverUrl: "{{ matrix_homeserver_url }}"
  23. auth:
  24. clientID: "{{matrix_appservice_discord_client_id}}"
  25. botToken: "{{matrix_appservice_discord_bot_token}}"
  26. database:
  27. filename: "/data/discord.db"
  28. userStorePath: "/data/user-store.db"
  29. roomStorePath: "/data/room-store.db"
  30. matrix_appservice_discord_configuration_extension_yaml: |
  31. # This is a sample of the config file showing all avaliable options.
  32. # Where possible we have documented what they do, and all values are the
  33. # default values.
  34. #
  35. #bridge:
  36. # # Domain part of the bridge, e.g. matrix.org
  37. # domain: "localhost"
  38. # # This should be your publically facing URL because Discord may use it to
  39. # # fetch media from the media store.
  40. # homeserverUrl: "http://localhost:8008"
  41. # # Interval at which to process users in the 'presence queue'. If you have
  42. # # 5 users, one user will be processed every 500 milliseconds according to the
  43. # # value below. This has a minimum value of 250.
  44. # # WARNING: This has a high chance of spamming the homeserver with presence
  45. # # updates since it will send one each time somebody changes state or is online.
  46. # presenceInterval: 500
  47. # # Disable setting presence for 'ghost users' which means Discord users on Matrix
  48. # # will not be shown as away or online.
  49. # disablePresence: false
  50. # # Disable sending typing notifications when somebody on Discord types.
  51. # disableTypingNotifications: false
  52. # # Disable deleting messages on Discord if a message is redacted on Matrix.
  53. # disableDeletionForwarding: false
  54. # # Enable users to bridge rooms using !discord commands. See
  55. # # https://t2bot.io/discord for instructions.
  56. # enableSelfServiceBridging: false
  57. # # Disable sending of read receipts for Matrix events which have been
  58. # # successfully bridged to Discord.
  59. # disableReadReceipts: false
  60. # Authentication configuration for the discord bot.
  61. #auth:
  62. # clientID: "12345"
  63. # botToken: "foobar"
  64. #logging:
  65. # # What level should the logger output to the console at.
  66. # console: "warn" #silly, verbose, info, http, warn, error, silent
  67. # lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  68. # files:
  69. # - file: "debug.log"
  70. # disable:
  71. # - "PresenceHandler" # Will not capture presence logging
  72. # - file: "warn.log" # Will capture warnings
  73. # level: "warn"
  74. # - file: "botlogs.log" # Will capture logs from DiscordBot
  75. # level: "info"
  76. # enable:
  77. # - "DiscordBot"
  78. #database:
  79. # userStorePath: "user-store.db"
  80. # roomStorePath: "room-store.db"
  81. # # You may either use SQLite or Postgresql for the bridge database, which contains
  82. # # important mappings for events and user puppeting configurations.
  83. # # Use the filename option for SQLite, or connString for Postgresql.
  84. # # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  85. # # WARNING: You will almost certainly be fine with sqlite unless your bridge
  86. # # is in heavy demand and you suffer from IO slowness.
  87. # filename: "discord.db"
  88. # # connString: "postgresql://user:password@localhost/database_name"
  89. #room:
  90. # # Set the default visibility of alias rooms, defaults to "public".
  91. # # One of: "public", "private"
  92. # defaultVisibility: "public"
  93. #channel:
  94. # # Pattern of the name given to bridged rooms.
  95. # # Can use :guild for the guild name and :name for the channel name.
  96. # namePattern: "[Discord] :guild :name"
  97. # # Changes made to rooms when a channel is deleted.
  98. # deleteOptions:
  99. # # Prefix the room name with a string.
  100. # #namePrefix: "[Deleted]"
  101. # # Prefix the room topic with a string.
  102. # #topicPrefix: "This room has been deleted"
  103. # # Disable people from talking in the room by raising the event PL to 50
  104. # disableMessaging: false
  105. # # Remove the discord alias from the room.
  106. # unsetRoomAlias: true
  107. # # Remove the room from the directory.
  108. # unlistFromDirectory: true
  109. # # Set the room to be unavaliable for joining without an invite.
  110. # setInviteOnly: true
  111. # # Make all the discord users leave the room.
  112. # ghostsLeave: true
  113. #limits:
  114. # # Delay in milliseconds between discord users joining a room.
  115. # roomGhostJoinDelay: 6000
  116. # # Delay in milliseconds before sending messages to discord to avoid echos.
  117. # # (Copies of a sent message may arrive from discord before we've
  118. # # fininished handling it, causing us to echo it back to the room)
  119. # discordSendDelay: 750
  120. matrix_appservice_discord_configuration_extension: "{{ matrix_appservice_discord_configuration_extension_yaml|from_yaml if matrix_appservice_discord_configuration_extension_yaml|from_yaml else {} }}"
  121. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"