Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

126 Zeilen
4.0 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. bridge:
  3. # Port to host the bridge on
  4. # Used for communication between the homeserver and the bridge
  5. port: {{ matrix_mx_puppet_discord_appservice_port }}
  6. # The host connections to the bridge's webserver are allowed from
  7. bindAddress: 0.0.0.0
  8. # Public domain of the homeserver
  9. domain: {{ matrix_mx_puppet_discord_homeserver_domain }}
  10. # Reachable URL of the Matrix homeserver
  11. homeserverUrl: {{ matrix_mx_puppet_discord_homeserver_address }}
  12. {% if matrix_mx_puppet_discord_login_shared_secret != '' %}
  13. loginSharedSecretMap:
  14. {{ matrix_domain }}: {{ matrix_mx_puppet_discord_login_shared_secret }}
  15. {% endif %}
  16. # Display name of the bridge bot
  17. displayname: Discord Puppet Bridge
  18. # Optionally specify a different media URL used for the media store
  19. #
  20. # This is where Discord will download user profile pictures and media
  21. # from
  22. #mediaUrl: https://external-url.org
  23. presence:
  24. # Bridge Discord online/offline status
  25. enabled: true
  26. # How often to send status to the homeserver in milliseconds
  27. interval: 500
  28. provisioning:
  29. # Regex of Matrix IDs allowed to use the puppet bridge
  30. whitelist: {{ matrix_mx_puppet_discord_provisioning_whitelist|to_json }}
  31. # Allow a specific user
  32. #- "@user:server\\.com"
  33. # Allow users on a specific homeserver
  34. #- "@.*:yourserver\\.com"
  35. # Allow anyone
  36. #- ".*"
  37. # Regex of Matrix IDs forbidden from using the puppet bridge
  38. #blacklist:
  39. # Disallow a specific user
  40. #- "@user:server\\.com"
  41. # Disallow users on a specific homeserver
  42. #- "@.*:yourserver\\.com"
  43. blacklist: {{ matrix_mx_puppet_discord_provisioning_blacklist|to_json }}
  44. relay:
  45. # Regex of Matrix IDs who are allowed to use the bridge in relay mode.
  46. # Relay mode is when a single Discord bot account relays messages of
  47. # multiple Matrix users
  48. #
  49. # Same format as in provisioning
  50. whitelist: {{ matrix_mx_puppet_discord_provisioning_whitelist|to_json }}
  51. blacklist: {{ matrix_mx_puppet_discord_provisioning_blacklist|to_json }}
  52. selfService:
  53. # Regex of Matrix IDs who are allowed to use bridge self-servicing (plumbed rooms)
  54. #
  55. # Same format as in provisioning
  56. whitelist: {{ matrix_mx_puppet_discord_provisioning_whitelist|to_json }}
  57. blacklist: {{ matrix_mx_puppet_discord_provisioning_blacklist|to_json }}
  58. # Override the default name patterns for users, rooms and groups
  59. #
  60. # Variable names must be prefixed with a ':'
  61. namePatterns:
  62. # The default displayname for a bridged user
  63. #
  64. # Available variables:
  65. #
  66. # name: username of the user
  67. # discriminator: hashtag of the user (ex. #1234)
  68. user: :name
  69. # A user's guild-specific displayname - if they've set a custom nick in
  70. # a guild
  71. #
  72. # Available variables:
  73. #
  74. # name: username of the user
  75. # discriminator: hashtag of the user (ex. #1234)
  76. # displayname: the user's custom group-specific nick
  77. # channel: the name of the channel
  78. # guild: the name of the guild
  79. userOverride: :name
  80. # Room names for bridged Discord channels
  81. #
  82. # Available variables:
  83. #
  84. # name: name of the channel
  85. # guild: name of the guild
  86. room: :name
  87. # Group names for bridged Discord servers
  88. #
  89. # Available variables:
  90. #
  91. # name: name of the guide
  92. group: :name
  93. database:
  94. {% if matrix_mx_puppet_discord_database_engine == 'sqlite' %}
  95. # Use SQLite3 as a database backend
  96. # The name of the database file
  97. filename: {{ matrix_mx_puppet_discord_sqlite_database_path_in_container|to_json }}
  98. {% else %}
  99. # Use Postgres as a database backend
  100. # If set, will be used instead of SQLite3
  101. # Connection string to connect to the Postgres instance
  102. # with username "user", password "pass", host "localhost" and database name "dbname".
  103. # Modify each value as necessary
  104. connString: {{ matrix_mx_puppet_discord_database_connection_string|to_json }}
  105. {% endif %}
  106. logging:
  107. # Log level of console output
  108. # Allowed values starting with most verbose:
  109. # silly, debug, verbose, info, warn, error
  110. console: info
  111. # Date and time formatting
  112. lineDateFormat: MMM-D HH:mm:ss.SSS
  113. # Logging files
  114. # Log files are rotated daily by default
  115. files: []