Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

139 regels
4.5 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. # Use Postgres as a database backend
  95. # If set, will be used instead of SQLite3
  96. # Connection string to connect to the Postgres instance
  97. # with username "user", password "pass", host "localhost" and database name "dbname".
  98. # Modify each value as necessary
  99. #connString: "postgres://user:pass@localhost/dbname?sslmode=disable"
  100. # Use SQLite3 as a database backend
  101. # The name of the database file
  102. filename: /data/database.db
  103. logging:
  104. # Log level of console output
  105. # Allowed values starting with most verbose:
  106. # silly, debug, verbose, info, warn, error
  107. console: info
  108. # Date and time formatting
  109. lineDateFormat: MMM-D HH:mm:ss.SSS
  110. # Logging files
  111. # Log files are rotated daily by default
  112. files:
  113. # Log file path
  114. - file: "/data/bridge.log"
  115. # Log level for this file
  116. # Allowed values starting with most verbose:
  117. # silly, debug, verbose, info, warn, error
  118. level: info
  119. # Date and time formatting
  120. datePattern: YYYY-MM-DD
  121. # Maximum number of logs to keep.
  122. # This can be a number of files or number of days.
  123. # If using days, add 'd' as a suffix
  124. maxFiles: 14d
  125. # Maximum size of the file after which it will rotate. This can be a
  126. # number of bytes, or units of kb, mb, and gb. If using the units, add
  127. # 'k', 'm', or 'g' as the suffix
  128. maxSize: 50m