Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

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