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.
 
 

135 line
6.0 KiB

  1. #jinja2: lstrip_blocks: True
  2. homeserver:
  3. # The URL to the home server for client-server API calls, also used to form the
  4. # media URLs as displayed in bridged IRC channels:
  5. url: {{ matrix_appservice_irc_homeserver_url }}
  6. #
  7. # The URL of the homeserver hosting media files. This is only used to transform
  8. # mxc URIs to http URIs when bridging m.room.[file|image] events. Optional. By
  9. # default, this is the homeserver URL, specified above.
  10. #
  11. media_url: {{ matrix_appservice_irc_homeserver_media_url }}
  12. # Drop Matrix messages which are older than this number of seconds, according to
  13. # the event's origin_server_ts.
  14. # If the bridge is down for a while, the homeserver will attempt to send all missed
  15. # events on reconnection. These events may be hours old, which can be confusing to
  16. # IRC users if they are then bridged. This option allows these old messages to be
  17. # dropped.
  18. # CAUTION: This is a very coarse heuristic. Federated homeservers may have different
  19. # clock times and hence produce different origin_server_ts values, which may be old
  20. # enough to cause *all* events from the homeserver to be dropped.
  21. # Default: 0 (don't ever drop)
  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. ircService:
  31. # WARNING: The bridge needs to send plaintext passwords to the IRC server, it cannot
  32. # send a password hash. As a result, passwords (NOT hashes) are stored encrypted in
  33. # the database.
  34. #
  35. # To generate a .pem file:
  36. # $ openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048
  37. #
  38. # The path to the RSA PEM-formatted private key to use when encrypting IRC passwords
  39. # for storage in the database. Passwords are stored by using the admin room command
  40. # `!storepass server.name passw0rd. When a connection is made to IRC on behalf of
  41. # the Matrix user, this password will be sent as the server password (PASS command).
  42. passwordEncryptionKeyPath: "/data/passkey.pem" # does not typically need modification
  43. # Config for Matrix -> IRC bridging
  44. matrixHandler:
  45. # Cache this many matrix events in memory to be used for m.relates_to messages (usually replies).
  46. eventCacheSize: 4096
  47. servers: {{ matrix_appservice_irc_ircService_servers|to_json }}
  48. # Configuration for an ident server. If you are running a public bridge it is
  49. # advised you setup an ident server so IRC mods can ban specific matrix users
  50. # rather than the application service itself.
  51. ident:
  52. # True to listen for Ident requests and respond with the
  53. # matrix user's user_id (converted to ASCII, respecting RFC 1413).
  54. # Default: false.
  55. enabled: false
  56. # The port to listen on for incoming ident requests.
  57. # Ports below 1024 require root to listen on, and you may not want this to
  58. # run as root. Instead, you can get something like an Apache to yank up
  59. # incoming requests to 113 to a high numbered port. Set the port to listen
  60. # on instead of 113 here.
  61. # Default: 113.
  62. port: 1113
  63. # The address to listen on for incoming ident requests.
  64. # Default: 0.0.0.0
  65. address: "::"
  66. # Configuration for logging. Optional. Default: console debug level logging
  67. # only.
  68. logging:
  69. # Level to log on console/logfile. One of error|warn|info|debug
  70. level: "debug"
  71. # The file location to log to. This is relative to the project directory.
  72. #logfile: "debug.log"
  73. # The file location to log errors to. This is relative to the project
  74. # directory.
  75. #errfile: "errors.log"
  76. # Whether to log to the console or not.
  77. toConsole: true
  78. # The max number of files to keep. Files will be overwritten eventually due
  79. # to rotations.
  80. maxFiles: 5
  81. # Optional. Enable Prometheus metrics. If this is enabled, you MUST install `prom-client`:
  82. # $ npm install prom-client@6.3.0
  83. # Metrics will then be available via GET /metrics on the bridge listening port (-p).
  84. metrics:
  85. # Whether to actually enable the metric endpoint. Default: false
  86. enabled: true
  87. # When collecting remote user active times, which "buckets" should be used. Defaults are given below.
  88. # The bucket name is formed of a duration and a period. (h=hours,d=days,w=weeks).
  89. remoteUserAgeBuckets:
  90. - "1h"
  91. - "1d"
  92. - "1w"
  93. # Configuration for the provisioning API.
  94. #
  95. # GET /_matrix/provision/link
  96. # GET /_matrix/provision/unlink
  97. # GET /_matrix/provision/listlinks
  98. #
  99. provisioning:
  100. # True to enable the provisioning HTTP endpoint. Default: false.
  101. enabled: false
  102. # The number of seconds to wait before giving up on getting a response from
  103. # an IRC channel operator. If the channel operator does not respond within the
  104. # allotted time period, the provisioning request will fail.
  105. # Default: 300 seconds (5 mins)
  106. requestTimeoutSeconds: 300
  107. # Options here are generally only applicable to large-scale bridges and may have
  108. # consequences greater than other options in this configuration file.
  109. advanced:
  110. # The maximum number of HTTP(S) sockets to maintain. Usually this is unlimited
  111. # however for large bridges it is important to rate limit the bridge to avoid
  112. # accidentally overloading the homeserver. Defaults to 1000, which should be
  113. # enough for the vast majority of use cases.
  114. maxHttpSockets: 1000
  115. # Use an external database to store bridge state.
  116. database:
  117. # database engine (must be 'postgres' or 'nedb'). Default: nedb
  118. engine: "nedb"
  119. # Either a PostgreSQL connection string, or a path to the NeDB storage directory.
  120. # For postgres, it must start with postgres://
  121. # For NeDB, it must start with nedb://. The path is relative to the project directory.
  122. connectionString: "nedb:///data"