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.
 
 

170 regels
7.6 KiB

  1. #jinja2: lstrip_blocks: True
  2. #
  3. # Based on https://github.com/matrix-org/matrix-appservice-irc/blob/8daebec7779a2480180cbc4c293838de649aab36/config.sample.yaml
  4. #
  5. # Configuration specific to AS registration. Unless other marked, all fields
  6. # are *REQUIRED*.
  7. # Unless otherwise specified, these keys CANNOT be hot-reloaded.
  8. homeserver:
  9. # The URL to the home server for client-server API calls
  10. url: "{{ matrix_appservice_irc_homeserver_url }}"
  11. # Drop Matrix messages which are older than this number of seconds, according to
  12. # the event's origin_server_ts.
  13. # If the bridge is down for a while, the homeserver will attempt to send all missed
  14. # events on reconnection. These events may be hours old, which can be confusing to
  15. # IRC users if they are then bridged. This option allows these old messages to be
  16. # dropped.
  17. # CAUTION: This is a very coarse heuristic. Federated homeservers may have different
  18. # clock times and hence produce different origin_server_ts values, which may be old
  19. # enough to cause *all* events from the homeserver to be dropped.
  20. # Default: 0 (don't ever drop)
  21. # This key CAN be hot-reloaded.
  22. # dropMatrixMessagesAfterSecs: 300 # 5 minutes
  23. # The 'domain' part for user IDs on this home server. Usually (but not always)
  24. # is the "domain name" part of the HS URL.
  25. domain: "{{ matrix_appservice_irc_homeserver_domain }}"
  26. # Should presence be enabled for Matrix clients on this bridge. If disabled on the
  27. # homeserver then it should also be disabled here to avoid excess traffic.
  28. # Default: true
  29. enablePresence: {{ matrix_appservice_irc_homeserver_enablePresence|to_json }}
  30. # Which port should the appservice bind to. Can be overridden by the one provided in the
  31. # command line! Optional.
  32. # bindPort: 8090
  33. # Use this option to force the appservice to listen on another hostname for transactions.
  34. # This is NOT your synapse hostname. E.g. use 127.0.0.1 to only listen locally. Optional.
  35. # bindHostname: 0.0.0.0
  36. # Configuration specific to the IRC service
  37. ircService:
  38. # WARNING: The bridge needs to send plaintext passwords to the IRC server, it cannot
  39. # send a password hash. As a result, passwords (NOT hashes) are stored encrypted in
  40. # the database.
  41. #
  42. # To generate a .pem file:
  43. # $ openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048
  44. #
  45. # The path to the RSA PEM-formatted private key to use when encrypting IRC passwords
  46. # for storage in the database. Passwords are stored by using the admin room command
  47. # `!storepass example.com passw0rd. When a connection is made to IRC on behalf of
  48. # the Matrix user, this password will be sent as the server password (PASS command).
  49. passwordEncryptionKeyPath: "/data/passkey.pem" # does not typically need modification
  50. # Config for Matrix -> IRC bridging
  51. matrixHandler:
  52. # Cache this many Matrix events in memory to be used for m.relates_to messages (usually replies).
  53. eventCacheSize: 4096
  54. # All server keys can be hot-reloaded, however existing IRC connections
  55. # will not have changes applied to them.
  56. servers: {{ matrix_appservice_irc_ircService_servers|to_json }}
  57. # present relevant UI to the user. MSC2346
  58. bridgeInfoState:
  59. enabled: false
  60. initial: false
  61. # Configuration for an ident server. If you are running a public bridge it is
  62. # advised you setup an ident server so IRC mods can ban specific Matrix users
  63. # rather than the application service itself.
  64. # This key CANNOT be hot-reloaded
  65. ident:
  66. # True to listen for Ident requests and respond with the
  67. # Matrix user's user_id (converted to ASCII, respecting RFC 1413).
  68. # Default: false.
  69. enabled: false
  70. # The port to listen on for incoming ident requests.
  71. # Ports below 1024 require root to listen on, and you may not want this to
  72. # run as root. Instead, you can get something like an Apache to yank up
  73. # incoming requests to 113 to a high numbered port. Set the port to listen
  74. # on instead of 113 here.
  75. # Default: 113.
  76. port: 1113
  77. # The address to listen on for incoming ident requests.
  78. # Default: 0.0.0.0
  79. address: "::"
  80. # Encoding fallback - which text encoding to try if text is not UTF-8. Default: not set.
  81. # List of supported encodings: https://www.npmjs.com/package/iconv#supported-encodings
  82. # encodingFallback: "ISO-8859-15"
  83. # Configuration for logging. Optional. Default: console debug level logging
  84. # only.
  85. logging:
  86. # Level to log on console/logfile.
  87. # Valid values: error, warn, info, debug
  88. level: "debug"
  89. # The file location to log to. This is relative to the project directory.
  90. #logfile: "debug.log"
  91. # The file location to log errors to. This is relative to the project directory.
  92. #errfile: "errors.log"
  93. # Whether to log to the console or not.
  94. toConsole: true
  95. # The max number of files to keep. Files will be overwritten eventually due
  96. # to rotations.
  97. maxFiles: 5
  98. # Metrics will then be available via GET /metrics on the bridge listening port (-p).
  99. # This key CANNOT be hot-reloaded
  100. metrics:
  101. # Whether to actually enable the metric endpoint. Default: false
  102. enabled: true
  103. # Which port to listen on (omit to listen on the bindPort)
  104. #port: 7001
  105. # Which hostname to listen on (omit to listen on 127.0.0.1), requires port to be set
  106. host: 127.0.0.1
  107. # When determining activeness of remote and matrix users, cut off at this number of hours.
  108. userActivityThresholdHours: 72 # 3 days
  109. # When collecting remote user active times, which "buckets" should be used. Defaults are given below.
  110. # The bucket name is formed of a duration and a period. (h=hours,d=days,w=weeks).
  111. remoteUserAgeBuckets:
  112. - "1h"
  113. - "1d"
  114. - "1w"
  115. # Configuration for the provisioning API.
  116. # This key CANNOT be hot-reloaded
  117. provisioning:
  118. # True to enable the provisioning HTTP endpoint. Default: false.
  119. enabled: false
  120. # Whether to enable hosting the setup widget page. Default: false.
  121. widget: false
  122. # Config for the media proxy, required to serve publicly accessible URLs to authenticated Matrix media
  123. mediaProxy:
  124. # To generate a .jwk file:
  125. # $ node src/generate-signing-key.js > signingkey.jwk
  126. signingKeyPath: "/data/auth-media.jwk"
  127. # How long should the generated URLs be valid for
  128. ttlSeconds: 604800
  129. # The port for the media proxy to listen on
  130. bindPort: {{ matrix_appservice_irc_ircService_mediaProxy_bindPort | to_json }}
  131. # The publicly accessible URL to the media proxy
  132. publicUrl: {{ matrix_appservice_irc_ircService_mediaProxy_publicUrl | to_json }}
  133. # Options here are generally only applicable to large-scale bridges and may have
  134. # consequences greater than other options in this configuration file.
  135. advanced:
  136. # The maximum number of HTTP(S) sockets to maintain. Usually this is unlimited
  137. # however for large bridges it is important to rate limit the bridge to avoid
  138. # accidentally overloading the homeserver. Defaults to 1000, which should be
  139. # enough for the vast majority of use cases.
  140. # This key CAN be hot-reloaded
  141. maxHttpSockets: 1000
  142. # Max size of an appservice transaction payload, in bytes. Defaults to 10Mb
  143. # This key CANNOT be hot-reloaded.
  144. maxTxnSize: 10000000
  145. # Use an external database to store bridge state.
  146. # This key CANNOT be hot-reloaded.
  147. database:
  148. # database engine (must be 'postgres' or 'nedb'). Default: nedb
  149. engine: {{ matrix_appservice_irc_database_engine|to_json }}
  150. # Either a PostgreSQL connection string, or a path to the NeDB storage directory.
  151. # For postgres, it must start with postgres://
  152. # For NeDB, it must start with nedb://. The path is relative to the project directory.
  153. connectionString: {{ matrix_appservice_irc_database_connectionString | to_json }}