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.
 
 

1539 Zeilen
53 KiB

  1. ### conduwuit Configuration
  2. ### See:
  3. ### https://conduwuit.puppyirl.gay/configuration.html
  4. [global]
  5. # The server_name is the pretty name of this server. It is used as a
  6. # suffix for user and room IDs/aliases.
  7. #
  8. # See the docs for reverse proxying and delegation:
  9. # https://conduwuit.puppyirl.gay/deploying/generic.html#setting-up-the-reverse-proxy
  10. #
  11. # Also see the `[global.well_known]` config section at the very bottom.
  12. #
  13. # Examples of delegation:
  14. # - https://puppygock.gay/.well-known/matrix/server
  15. # - https://puppygock.gay/.well-known/matrix/client
  16. #
  17. # YOU NEED TO EDIT THIS. THIS CANNOT BE CHANGED AFTER WITHOUT A DATABASE
  18. # WIPE.
  19. #
  20. # example: "conduwuit.woof"
  21. #
  22. server_name = {{ matrix_conduwuit_config_server_name | to_json }}
  23. # The default address (IPv4 or IPv6) conduwuit will listen on.
  24. #
  25. # If you are using Docker or a container NAT networking setup, this must
  26. # be "0.0.0.0".
  27. #
  28. # To listen on multiple addresses, specify a vector e.g. ["127.0.0.1",
  29. # "::1"]
  30. #
  31. address = "0.0.0.0"
  32. # The port(s) conduwuit will listen on.
  33. #
  34. # For reverse proxying, see:
  35. # https://conduwuit.puppyirl.gay/deploying/generic.html#setting-up-the-reverse-proxy
  36. #
  37. # If you are using Docker, don't change this, you'll need to map an
  38. # external port to this.
  39. #
  40. # To listen on multiple ports, specify a vector e.g. [8080, 8448]
  41. #
  42. port = {{ matrix_conduwuit_config_port_number }}
  43. # The UNIX socket conduwuit will listen on.
  44. #
  45. # conduwuit cannot listen on both an IP address and a UNIX socket. If
  46. # listening on a UNIX socket, you MUST remove/comment the `address` key.
  47. #
  48. # Remember to make sure that your reverse proxy has access to this socket
  49. # file, either by adding your reverse proxy to the 'conduwuit' group or
  50. # granting world R/W permissions with `unix_socket_perms` (666 minimum).
  51. #
  52. # example: "/run/conduwuit/conduwuit.sock"
  53. #
  54. #unix_socket_path =
  55. # The default permissions (in octal) to create the UNIX socket with.
  56. #
  57. #unix_socket_perms = 660
  58. # This is the only directory where conduwuit will save its data, including
  59. # media. Note: this was previously "/var/lib/matrix-conduit".
  60. #
  61. # YOU NEED TO EDIT THIS.
  62. #
  63. # example: "/var/lib/conduwuit"
  64. #
  65. database_path = "/var/lib/conduwuit"
  66. # conduwuit supports online database backups using RocksDB's Backup engine
  67. # API. To use this, set a database backup path that conduwuit can write
  68. # to.
  69. #
  70. # For more information, see:
  71. # https://conduwuit.puppyirl.gay/maintenance.html#backups
  72. #
  73. # example: "/opt/conduwuit-db-backups"
  74. #
  75. #database_backup_path =
  76. # The amount of online RocksDB database backups to keep/retain, if using
  77. # "database_backup_path", before deleting the oldest one.
  78. #
  79. #database_backups_to_keep = 1
  80. # Text which will be added to the end of the user's displayname upon
  81. # registration with a space before the text. In Conduit, this was the
  82. # lightning bolt emoji.
  83. #
  84. # To disable, set this to "" (an empty string).
  85. #
  86. # The default is the trans pride flag.
  87. #
  88. # example: "🏳️‍⚧️"
  89. #
  90. new_user_displayname_suffix = {{ matrix_conduwuit_config_new_user_displayname_suffix | to_json }}
  91. # If enabled, conduwuit will send a simple GET request periodically to
  92. # `https://pupbrain.dev/check-for-updates/stable` for any new
  93. # announcements made. Despite the name, this is not an update check
  94. # endpoint, it is simply an announcement check endpoint.
  95. #
  96. # This is disabled by default as this is rarely used except for security
  97. # updates or major updates.
  98. #
  99. allow_check_for_updates = {{ matrix_conduwuit_config_allow_check_for_updates | to_json }}
  100. # Set this to any float value to multiply conduwuit's in-memory LRU caches
  101. # with such as "auth_chain_cache_capacity".
  102. #
  103. # May be useful if you have significant memory to spare to increase
  104. # performance.
  105. #
  106. # If you have low memory, reducing this may be viable.
  107. #
  108. # By default, the individual caches such as "auth_chain_cache_capacity"
  109. # are scaled by your CPU core count.
  110. #
  111. #cache_capacity_modifier = 1.0
  112. # Set this to any float value in megabytes for conduwuit to tell the
  113. # database engine that this much memory is available for database read
  114. # caches.
  115. #
  116. # May be useful if you have significant memory to spare to increase
  117. # performance.
  118. #
  119. # Similar to the individual LRU caches, this is scaled up with your CPU
  120. # core count.
  121. #
  122. # This defaults to 128.0 + (64.0 * CPU core count).
  123. #
  124. #db_cache_capacity_mb = varies by system
  125. # Set this to any float value in megabytes for conduwuit to tell the
  126. # database engine that this much memory is available for database write
  127. # caches.
  128. #
  129. # May be useful if you have significant memory to spare to increase
  130. # performance.
  131. #
  132. # Similar to the individual LRU caches, this is scaled up with your CPU
  133. # core count.
  134. #
  135. # This defaults to 48.0 + (4.0 * CPU core count).
  136. #
  137. #db_write_buffer_capacity_mb = varies by system
  138. # This item is undocumented. Please contribute documentation for it.
  139. #
  140. #pdu_cache_capacity = varies by system
  141. # This item is undocumented. Please contribute documentation for it.
  142. #
  143. #auth_chain_cache_capacity = varies by system
  144. # This item is undocumented. Please contribute documentation for it.
  145. #
  146. #shorteventid_cache_capacity = varies by system
  147. # This item is undocumented. Please contribute documentation for it.
  148. #
  149. #eventidshort_cache_capacity = varies by system
  150. # This item is undocumented. Please contribute documentation for it.
  151. #
  152. #eventid_pdu_cache_capacity = varies by system
  153. # This item is undocumented. Please contribute documentation for it.
  154. #
  155. #shortstatekey_cache_capacity = varies by system
  156. # This item is undocumented. Please contribute documentation for it.
  157. #
  158. #statekeyshort_cache_capacity = varies by system
  159. # This item is undocumented. Please contribute documentation for it.
  160. #
  161. #servernameevent_data_cache_capacity = varies by system
  162. # This item is undocumented. Please contribute documentation for it.
  163. #
  164. #server_visibility_cache_capacity = varies by system
  165. # This item is undocumented. Please contribute documentation for it.
  166. #
  167. #user_visibility_cache_capacity = varies by system
  168. # This item is undocumented. Please contribute documentation for it.
  169. #
  170. #stateinfo_cache_capacity = varies by system
  171. # This item is undocumented. Please contribute documentation for it.
  172. #
  173. #roomid_spacehierarchy_cache_capacity = varies by system
  174. # Maximum entries stored in DNS memory-cache. The size of an entry may
  175. # vary so please take care if raising this value excessively. Only
  176. # decrease this when using an external DNS cache. Please note that
  177. # systemd-resolved does *not* count as an external cache, even when
  178. # configured to do so.
  179. #
  180. #dns_cache_entries = 32768
  181. # Minimum time-to-live in seconds for entries in the DNS cache. The
  182. # default may appear high to most administrators; this is by design as the
  183. # majority of NXDOMAINs are correct for a long time (e.g. the server is no
  184. # longer running Matrix). Only decrease this if you are using an external
  185. # DNS cache.
  186. #
  187. #dns_min_ttl = 10800
  188. # Minimum time-to-live in seconds for NXDOMAIN entries in the DNS cache.
  189. # This value is critical for the server to federate efficiently.
  190. # NXDOMAIN's are assumed to not be returning to the federation and
  191. # aggressively cached rather than constantly rechecked.
  192. #
  193. # Defaults to 3 days as these are *very rarely* false negatives.
  194. #
  195. #dns_min_ttl_nxdomain = 259200
  196. # Number of DNS nameserver retries after a timeout or error.
  197. #
  198. #dns_attempts = 10
  199. # The number of seconds to wait for a reply to a DNS query. Please note
  200. # that recursive queries can take up to several seconds for some domains,
  201. # so this value should not be too low, especially on slower hardware or
  202. # resolvers.
  203. #
  204. #dns_timeout = 10
  205. # Fallback to TCP on DNS errors. Set this to false if unsupported by
  206. # nameserver.
  207. #
  208. #dns_tcp_fallback = true
  209. # Enable to query all nameservers until the domain is found. Referred to
  210. # as "trust_negative_responses" in hickory_resolver. This can avoid
  211. # useless DNS queries if the first nameserver responds with NXDOMAIN or
  212. # an empty NOERROR response.
  213. #
  214. #query_all_nameservers = true
  215. # Enable using *only* TCP for querying your specified nameservers instead
  216. # of UDP.
  217. #
  218. # If you are running conduwuit in a container environment, this config
  219. # option may need to be enabled. For more details, see:
  220. # https://conduwuit.puppyirl.gay/troubleshooting.html#potential-dns-issues-when-using-docker
  221. #
  222. #query_over_tcp_only = false
  223. # DNS A/AAAA record lookup strategy
  224. #
  225. # Takes a number of one of the following options:
  226. # 1 - Ipv4Only (Only query for A records, no AAAA/IPv6)
  227. #
  228. # 2 - Ipv6Only (Only query for AAAA records, no A/IPv4)
  229. #
  230. # 3 - Ipv4AndIpv6 (Query for A and AAAA records in parallel, uses whatever
  231. # returns a successful response first)
  232. #
  233. # 4 - Ipv6thenIpv4 (Query for AAAA record, if that fails then query the A
  234. # record)
  235. #
  236. # 5 - Ipv4thenIpv6 (Query for A record, if that fails then query the AAAA
  237. # record)
  238. #
  239. # If you don't have IPv6 networking, then for better DNS performance it
  240. # may be suitable to set this to Ipv4Only (1) as you will never ever use
  241. # the AAAA record contents even if the AAAA record is successful instead
  242. # of the A record.
  243. #
  244. #ip_lookup_strategy = 5
  245. # Max request size for file uploads in bytes. Defaults to 20MB.
  246. #
  247. max_request_size = {{ matrix_conduwuit_config_max_request_size }}
  248. # This item is undocumented. Please contribute documentation for it.
  249. #
  250. #max_fetch_prev_events = 192
  251. # Default/base connection timeout (seconds). This is used only by URL
  252. # previews and update/news endpoint checks.
  253. #
  254. #request_conn_timeout = 10
  255. # Default/base request timeout (seconds). The time waiting to receive more
  256. # data from another server. This is used only by URL previews,
  257. # update/news, and misc endpoint checks.
  258. #
  259. #request_timeout = 35
  260. # Default/base request total timeout (seconds). The time limit for a whole
  261. # request. This is set very high to not cancel healthy requests while
  262. # serving as a backstop. This is used only by URL previews and update/news
  263. # endpoint checks.
  264. #
  265. #request_total_timeout = 320
  266. # Default/base idle connection pool timeout (seconds). This is used only
  267. # by URL previews and update/news endpoint checks.
  268. #
  269. #request_idle_timeout = 5
  270. # Default/base max idle connections per host. This is used only by URL
  271. # previews and update/news endpoint checks. Defaults to 1 as generally the
  272. # same open connection can be re-used.
  273. #
  274. #request_idle_per_host = 1
  275. # Federation well-known resolution connection timeout (seconds).
  276. #
  277. #well_known_conn_timeout = 6
  278. # Federation HTTP well-known resolution request timeout (seconds).
  279. #
  280. #well_known_timeout = 10
  281. # Federation client request timeout (seconds). You most definitely want
  282. # this to be high to account for extremely large room joins, slow
  283. # homeservers, your own resources etc.
  284. #
  285. #federation_timeout = 300
  286. # Federation client idle connection pool timeout (seconds).
  287. #
  288. #federation_idle_timeout = 25
  289. # Federation client max idle connections per host. Defaults to 1 as
  290. # generally the same open connection can be re-used.
  291. #
  292. #federation_idle_per_host = 1
  293. # Federation sender request timeout (seconds). The time it takes for the
  294. # remote server to process sent transactions can take a while.
  295. #
  296. #sender_timeout = 180
  297. # Federation sender idle connection pool timeout (seconds).
  298. #
  299. #sender_idle_timeout = 180
  300. # Federation sender transaction retry backoff limit (seconds).
  301. #
  302. #sender_retry_backoff_limit = 86400
  303. # Appservice URL request connection timeout. Defaults to 35 seconds as
  304. # generally appservices are hosted within the same network.
  305. #
  306. #appservice_timeout = 35
  307. # Appservice URL idle connection pool timeout (seconds).
  308. #
  309. #appservice_idle_timeout = 300
  310. # Notification gateway pusher idle connection pool timeout.
  311. #
  312. #pusher_idle_timeout = 15
  313. # Enables registration. If set to false, no users can register on this
  314. # server.
  315. #
  316. # If set to true without a token configured, users can register with no
  317. # form of 2nd-step only if you set the following option to true:
  318. # `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
  319. #
  320. # If you would like registration only via token reg, please configure
  321. # `registration_token` or `registration_token_file`.
  322. #
  323. allow_registration = {{ matrix_conduwuit_config_allow_registration | to_json }}
  324. yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = {{ matrix_conduwuit_config_yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse | to_json }}
  325. allow_federation = {{ matrix_conduwuit_config_allow_federation | to_json }}
  326. # This item is undocumented. Please contribute documentation for it.
  327. #
  328. #yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = false
  329. # A static registration token that new users will have to provide when
  330. # creating an account. If unset and `allow_registration` is true,
  331. # registration is open without any condition.
  332. #
  333. # YOU NEED TO EDIT THIS OR USE registration_token_file.
  334. #
  335. # example: "o&^uCtes4HPf0Vu@F20jQeeWE7"
  336. #
  337. registration_token = {{ matrix_conduwuit_config_registration_token | to_json }}
  338. # Path to a file on the system that gets read for the registration token.
  339. # this config option takes precedence/priority over "registration_token".
  340. #
  341. # conduwuit must be able to access the file, and it must not be empty
  342. #
  343. # example: "/etc/conduwuit/.reg_token"
  344. #
  345. #registration_token_file =
  346. # Controls whether encrypted rooms and events are allowed.
  347. #
  348. #allow_encryption = true
  349. # Controls whether federation is allowed or not. It is not recommended to
  350. # disable this after the fact due to potential federation breakage.
  351. #
  352. #allow_federation = true
  353. # This item is undocumented. Please contribute documentation for it.
  354. #
  355. #federation_loopback = false
  356. # Set this to true to require authentication on the normally
  357. # unauthenticated profile retrieval endpoints (GET)
  358. # "/_matrix/client/v3/profile/{userId}".
  359. #
  360. # This can prevent profile scraping.
  361. #
  362. #require_auth_for_profile_requests = false
  363. # Set this to true to allow your server's public room directory to be
  364. # federated. Set this to false to protect against /publicRooms spiders,
  365. # but will forbid external users from viewing your server's public room
  366. # directory. If federation is disabled entirely (`allow_federation`), this
  367. # is inherently false.
  368. #
  369. #allow_public_room_directory_over_federation = false
  370. # Set this to true to allow your server's public room directory to be
  371. # queried without client authentication (access token) through the Client
  372. # APIs. Set this to false to protect against /publicRooms spiders.
  373. #
  374. #allow_public_room_directory_without_auth = false
  375. # Allow guests/unauthenticated users to access TURN credentials.
  376. #
  377. # This is the equivalent of Synapse's `turn_allow_guests` config option.
  378. # This allows any unauthenticated user to call the endpoint
  379. # `/_matrix/client/v3/voip/turnServer`.
  380. #
  381. # It is unlikely you need to enable this as all major clients support
  382. # authentication for this endpoint and prevents misuse of your TURN server
  383. # from potential bots.
  384. #
  385. #turn_allow_guests = false
  386. # Set this to true to lock down your server's public room directory and
  387. # only allow admins to publish rooms to the room directory. Unpublishing
  388. # is still allowed by all users with this enabled.
  389. #
  390. #lockdown_public_room_directory = false
  391. # Set this to true to allow federating device display names / allow
  392. # external users to see your device display name. If federation is
  393. # disabled entirely (`allow_federation`), this is inherently false. For
  394. # privacy reasons, this is best left disabled.
  395. #
  396. #allow_device_name_federation = false
  397. # Config option to allow or disallow incoming federation requests that
  398. # obtain the profiles of our local users from
  399. # `/_matrix/federation/v1/query/profile`
  400. #
  401. # Increases privacy of your local user's such as display names, but some
  402. # remote users may get a false "this user does not exist" error when they
  403. # try to invite you to a DM or room. Also can protect against profile
  404. # spiders.
  405. #
  406. # This is inherently false if `allow_federation` is disabled
  407. #
  408. #allow_inbound_profile_lookup_federation_requests = true
  409. # Allow standard users to create rooms. Appservices and admins are always
  410. # allowed to create rooms
  411. #
  412. #allow_room_creation = true
  413. # Set to false to disable users from joining or creating room versions
  414. # that aren't officially supported by conduwuit.
  415. #
  416. # conduwuit officially supports room versions 6 - 11.
  417. #
  418. # conduwuit has slightly experimental (though works fine in practice)
  419. # support for versions 3 - 5.
  420. #
  421. #allow_unstable_room_versions = true
  422. # Default room version conduwuit will create rooms with.
  423. #
  424. # Per spec, room version 10 is the default.
  425. #
  426. #default_room_version = 10
  427. # This item is undocumented. Please contribute documentation for it.
  428. #
  429. #allow_jaeger = false
  430. # This item is undocumented. Please contribute documentation for it.
  431. #
  432. #jaeger_filter = "info"
  433. # If the 'perf_measurements' compile-time feature is enabled, enables
  434. # collecting folded stack trace profile of tracing spans using
  435. # tracing_flame. The resulting profile can be visualized with inferno[1],
  436. # speedscope[2], or a number of other tools.
  437. #
  438. # [1]: https://github.com/jonhoo/inferno
  439. # [2]: www.speedscope.app
  440. #
  441. #tracing_flame = false
  442. # This item is undocumented. Please contribute documentation for it.
  443. #
  444. #tracing_flame_filter = "info"
  445. # This item is undocumented. Please contribute documentation for it.
  446. #
  447. #tracing_flame_output_path = "./tracing.folded"
  448. # Examples:
  449. #
  450. # - No proxy (default):
  451. #
  452. # proxy = "none"
  453. #
  454. # - For global proxy, create the section at the bottom of this file:
  455. #
  456. # [global.proxy]
  457. # global = { url = "socks5h://localhost:9050" }
  458. #
  459. # - To proxy some domains:
  460. #
  461. # [global.proxy]
  462. # [[global.proxy.by_domain]]
  463. # url = "socks5h://localhost:9050"
  464. # include = ["*.onion", "matrix.myspecial.onion"]
  465. # exclude = ["*.myspecial.onion"]
  466. #
  467. # Include vs. Exclude:
  468. #
  469. # - If include is an empty list, it is assumed to be `["*"]`.
  470. #
  471. # - If a domain matches both the exclude and include list, the proxy will
  472. # only be used if it was included because of a more specific rule than
  473. # it was excluded. In the above example, the proxy would be used for
  474. # `ordinary.onion`, `matrix.myspecial.onion`, but not
  475. # `hello.myspecial.onion`.
  476. #
  477. #proxy = "none"
  478. # Servers listed here will be used to gather public keys of other servers
  479. # (notary trusted key servers).
  480. #
  481. # Currently, conduwuit doesn't support inbound batched key requests, so
  482. # this list should only contain other Synapse servers.
  483. #
  484. # example: ["matrix.org", "envs.net", "constellatory.net", "tchncs.de"]
  485. #
  486. trusted_servers = {{ matrix_conduwuit_trusted_servers | to_json }}
  487. # Whether to query the servers listed in trusted_servers first or query
  488. # the origin server first. For best security, querying the origin server
  489. # first is advised to minimize the exposure to a compromised trusted
  490. # server. For maximum federation/join performance this can be set to true,
  491. # however other options exist to query trusted servers first under
  492. # specific high-load circumstances and should be evaluated before setting
  493. # this to true.
  494. #
  495. #query_trusted_key_servers_first = false
  496. # Whether to query the servers listed in trusted_servers first
  497. # specifically on room joins. This option limits the exposure to a
  498. # compromised trusted server to room joins only. The join operation
  499. # requires gathering keys from many origin servers which can cause
  500. # significant delays. Therefor this defaults to true to mitigate
  501. # unexpected delays out-of-the-box. The security-paranoid or those willing
  502. # to tolerate delays are advised to set this to false. Note that setting
  503. # query_trusted_key_servers_first to true causes this option to be
  504. # ignored.
  505. #
  506. #query_trusted_key_servers_first_on_join = true
  507. # Only query trusted servers for keys and never the origin server. This is
  508. # intended for clusters or custom deployments using their trusted_servers
  509. # as forwarding-agents to cache and deduplicate requests. Notary servers
  510. # do not act as forwarding-agents by default, therefor do not enable this
  511. # unless you know exactly what you are doing.
  512. #
  513. #only_query_trusted_key_servers = false
  514. # Maximum number of keys to request in each trusted server batch query.
  515. #
  516. #trusted_server_batch_size = 1024
  517. # Max log level for conduwuit. Allows debug, info, warn, or error.
  518. #
  519. # See also:
  520. # https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
  521. #
  522. # **Caveat**:
  523. # For release builds, the tracing crate is configured to only implement
  524. # levels higher than error to avoid unnecessary overhead in the compiled
  525. # binary from trace macros. For debug builds, this restriction is not
  526. # applied.
  527. #
  528. log = {{ matrix_conduwuit_config_log | to_json }}
  529. # Output logs with ANSI colours.
  530. #
  531. #log_colors = true
  532. # Configures the span events which will be outputted with the log.
  533. #
  534. #log_span_events = "none"
  535. # Configures whether CONDUWUIT_LOG EnvFilter matches values using regular
  536. # expressions. See the tracing_subscriber documentation on Directives.
  537. #
  538. #log_filter_regex = true
  539. # Toggles the display of ThreadId in tracing log output.
  540. #
  541. #log_thread_ids = false
  542. # OpenID token expiration/TTL in seconds.
  543. #
  544. # These are the OpenID tokens that are primarily used for Matrix account
  545. # integrations (e.g. Vector Integrations in Element), *not* OIDC/OpenID
  546. # Connect/etc.
  547. #
  548. #openid_token_ttl = 3600
  549. # Allow an existing session to mint a login token for another client.
  550. # This requires interactive authentication, but has security ramifications
  551. # as a malicious client could use the mechanism to spawn more than one
  552. # session.
  553. # Enabled by default.
  554. #
  555. #login_via_existing_session = true
  556. # Login token expiration/TTL in milliseconds.
  557. #
  558. # These are short-lived tokens for the m.login.token endpoint.
  559. # This is used to allow existing sessions to create new sessions.
  560. # see login_via_existing_session.
  561. #
  562. #login_token_ttl = 120000
  563. # Static TURN username to provide the client if not using a shared secret
  564. # ("turn_secret"), It is recommended to use a shared secret over static
  565. # credentials.
  566. #
  567. #turn_username = false
  568. # Static TURN password to provide the client if not using a shared secret
  569. # ("turn_secret"). It is recommended to use a shared secret over static
  570. # credentials.
  571. #
  572. #turn_password = false
  573. # Vector list of TURN URIs/servers to use.
  574. #
  575. # Replace "example.turn.uri" with your TURN domain, such as the coturn
  576. # "realm" config option. If using TURN over TLS, replace the URI prefix
  577. # "turn:" with "turns:".
  578. #
  579. # example: ["turn:example.turn.uri?transport=udp",
  580. # "turn:example.turn.uri?transport=tcp"]
  581. #
  582. turn_uris = {{ matrix_conduwuit_config_turn_uris | to_json }}
  583. # TURN secret to use for generating the HMAC-SHA1 hash apart of username
  584. # and password generation.
  585. #
  586. # This is more secure, but if needed you can use traditional static
  587. # username/password credentials.
  588. #
  589. #turn_secret = false
  590. {% if matrix_conduwuit_config_turn_secret != '' %}
  591. turn_secret = {{ matrix_conduwuit_config_turn_secret | to_json }}
  592. {% endif %}
  593. # If you have your TURN server configured to use a username and password
  594. # you can provide these information too. In this case comment out `turn_secret above`!
  595. {% if matrix_conduwuit_config_turn_username != '' or matrix_conduwuit_config_turn_password != '' %}
  596. turn_username = {{ matrix_conduwuit_config_turn_username | to_json }}
  597. turn_password = {{ matrix_conduwuit_config_turn_password | to_json }}
  598. {% endif %}
  599. # TURN secret to use that's read from the file path specified.
  600. #
  601. # This takes priority over "turn_secret" first, and falls back to
  602. # "turn_secret" if invalid or failed to open.
  603. #
  604. # example: "/etc/conduwuit/.turn_secret"
  605. #
  606. #turn_secret_file =
  607. # TURN TTL, in seconds.
  608. #
  609. #turn_ttl = 86400
  610. # List/vector of room IDs or room aliases that conduwuit will make newly
  611. # registered users join. The rooms specified must be rooms that you have
  612. # joined at least once on the server, and must be public.
  613. #
  614. # example: ["#conduwuit:puppygock.gay",
  615. # "!eoIzvAvVwY23LPDay8:puppygock.gay"]
  616. #
  617. #auto_join_rooms = []
  618. # Config option to automatically deactivate the account of any user who
  619. # attempts to join a:
  620. # - banned room
  621. # - forbidden room alias
  622. # - room alias or ID with a forbidden server name
  623. #
  624. # This may be useful if all your banned lists consist of toxic rooms or
  625. # servers that no good faith user would ever attempt to join, and
  626. # to automatically remediate the problem without any admin user
  627. # intervention.
  628. #
  629. # This will also make the user leave all rooms. Federation (e.g. remote
  630. # room invites) are ignored here.
  631. #
  632. # Defaults to false as rooms can be banned for non-moderation-related
  633. # reasons and this performs a full user deactivation.
  634. #
  635. #auto_deactivate_banned_room_attempts = false
  636. # RocksDB log level. This is not the same as conduwuit's log level. This
  637. # is the log level for the RocksDB engine/library which show up in your
  638. # database folder/path as `LOG` files. conduwuit will log RocksDB errors
  639. # as normal through tracing or panics if severe for safety.
  640. #
  641. #rocksdb_log_level = "error"
  642. # This item is undocumented. Please contribute documentation for it.
  643. #
  644. #rocksdb_log_stderr = false
  645. # Max RocksDB `LOG` file size before rotating in bytes. Defaults to 4MB in
  646. # bytes.
  647. #
  648. #rocksdb_max_log_file_size = 4194304
  649. # Time in seconds before RocksDB will forcibly rotate logs.
  650. #
  651. #rocksdb_log_time_to_roll = 0
  652. # Set this to true to use RocksDB config options that are tailored to HDDs
  653. # (slower device storage).
  654. #
  655. # It is worth noting that by default, conduwuit will use RocksDB with
  656. # Direct IO enabled. *Generally* speaking this improves performance as it
  657. # bypasses buffered I/O (system page cache). However there is a potential
  658. # chance that Direct IO may cause issues with database operations if your
  659. # setup is uncommon. This has been observed with FUSE filesystems, and
  660. # possibly ZFS filesystem. RocksDB generally deals/corrects these issues
  661. # but it cannot account for all setups. If you experience any weird
  662. # RocksDB issues, try enabling this option as it turns off Direct IO and
  663. # feel free to report in the conduwuit Matrix room if this option fixes
  664. # your DB issues.
  665. #
  666. # For more information, see:
  667. # https://github.com/facebook/rocksdb/wiki/Direct-IO
  668. #
  669. #rocksdb_optimize_for_spinning_disks = false
  670. # Enables direct-io to increase database performance via unbuffered I/O.
  671. #
  672. # For more details about direct I/O and RockDB, see:
  673. # https://github.com/facebook/rocksdb/wiki/Direct-IO
  674. #
  675. # Set this option to false if the database resides on a filesystem which
  676. # does not support direct-io like FUSE, or any form of complex filesystem
  677. # setup such as possibly ZFS.
  678. #
  679. #rocksdb_direct_io = true
  680. # Amount of threads that RocksDB will use for parallelism on database
  681. # operations such as cleanup, sync, flush, compaction, etc. Set to 0 to
  682. # use all your logical threads. Defaults to your CPU logical thread count.
  683. #
  684. #rocksdb_parallelism_threads = varies by system
  685. # Maximum number of LOG files RocksDB will keep. This must *not* be set to
  686. # 0. It must be at least 1. Defaults to 3 as these are not very useful
  687. # unless troubleshooting/debugging a RocksDB bug.
  688. #
  689. #rocksdb_max_log_files = 3
  690. # Type of RocksDB database compression to use.
  691. #
  692. # Available options are "zstd", "zlib", "bz2", "lz4", or "none".
  693. #
  694. # It is best to use ZSTD as an overall good balance between
  695. # speed/performance, storage, IO amplification, and CPU usage. For more
  696. # performance but less compression (more storage used) and less CPU usage,
  697. # use LZ4.
  698. #
  699. # For more details, see:
  700. # https://github.com/facebook/rocksdb/wiki/Compression
  701. #
  702. # "none" will disable compression.
  703. #
  704. #rocksdb_compression_algo = "zstd"
  705. # Level of compression the specified compression algorithm for RocksDB to
  706. # use.
  707. #
  708. # Default is 32767, which is internally read by RocksDB as the default
  709. # magic number and translated to the library's default compression level
  710. # as they all differ. See their `kDefaultCompressionLevel`.
  711. #
  712. #rocksdb_compression_level = 32767
  713. # Level of compression the specified compression algorithm for the
  714. # bottommost level/data for RocksDB to use. Default is 32767, which is
  715. # internally read by RocksDB as the default magic number and translated to
  716. # the library's default compression level as they all differ. See their
  717. # `kDefaultCompressionLevel`.
  718. #
  719. # Since this is the bottommost level (generally old and least used data),
  720. # it may be desirable to have a very high compression level here as it's
  721. # less likely for this data to be used. Research your chosen compression
  722. # algorithm.
  723. #
  724. #rocksdb_bottommost_compression_level = 32767
  725. # Whether to enable RocksDB's "bottommost_compression".
  726. #
  727. # At the expense of more CPU usage, this will further compress the
  728. # database to reduce more storage. It is recommended to use ZSTD
  729. # compression with this for best compression results. This may be useful
  730. # if you're trying to reduce storage usage from the database.
  731. #
  732. # See https://github.com/facebook/rocksdb/wiki/Compression for more details.
  733. #
  734. #rocksdb_bottommost_compression = false
  735. # Database recovery mode (for RocksDB WAL corruption).
  736. #
  737. # Use this option when the server reports corruption and refuses to start.
  738. # Set mode 2 (PointInTime) to cleanly recover from this corruption. The
  739. # server will continue from the last good state, several seconds or
  740. # minutes prior to the crash. Clients may have to run "clear-cache &
  741. # reload" to account for the rollback. Upon success, you may reset the
  742. # mode back to default and restart again. Please note in some cases the
  743. # corruption error may not be cleared for at least 30 minutes of operation
  744. # in PointInTime mode.
  745. #
  746. # As a very last ditch effort, if PointInTime does not fix or resolve
  747. # anything, you can try mode 3 (SkipAnyCorruptedRecord) but this will
  748. # leave the server in a potentially inconsistent state.
  749. #
  750. # The default mode 1 (TolerateCorruptedTailRecords) will automatically
  751. # drop the last entry in the database if corrupted during shutdown, but
  752. # nothing more. It is extraordinarily unlikely this will desynchronize
  753. # clients. To disable any form of silent rollback set mode 0
  754. # (AbsoluteConsistency).
  755. #
  756. # The options are:
  757. # 0 = AbsoluteConsistency
  758. # 1 = TolerateCorruptedTailRecords (default)
  759. # 2 = PointInTime (use me if trying to recover)
  760. # 3 = SkipAnyCorruptedRecord (you now voided your conduwuit warranty)
  761. #
  762. # For more information on these modes, see:
  763. # https://github.com/facebook/rocksdb/wiki/WAL-Recovery-Modes
  764. #
  765. # For more details on recovering a corrupt database, see:
  766. # https://conduwuit.puppyirl.gay/troubleshooting.html#database-corruption
  767. #
  768. #rocksdb_recovery_mode = 1
  769. # Enables or disables paranoid SST file checks. This can improve RocksDB
  770. # database consistency at a potential performance impact due to further
  771. # safety checks ran.
  772. #
  773. # For more information, see:
  774. # https://github.com/facebook/rocksdb/wiki/Online-Verification#columnfamilyoptionsparanoid_file_checks
  775. #
  776. #rocksdb_paranoid_file_checks = false
  777. # Database repair mode (for RocksDB SST corruption).
  778. #
  779. # Use this option when the server reports corruption while running or
  780. # panics. If the server refuses to start use the recovery mode options
  781. # first. Corruption errors containing the acronym 'SST' which occur after
  782. # startup will likely require this option.
  783. #
  784. # - Backing up your database directory is recommended prior to running the
  785. # repair.
  786. #
  787. # - Disabling repair mode and restarting the server is recommended after
  788. # running the repair.
  789. #
  790. # See https://conduwuit.puppyirl.gay/troubleshooting.html#database-corruption for more details on recovering a corrupt database.
  791. #
  792. #rocksdb_repair = false
  793. # This item is undocumented. Please contribute documentation for it.
  794. #
  795. #rocksdb_read_only = false
  796. # This item is undocumented. Please contribute documentation for it.
  797. #
  798. #rocksdb_secondary = false
  799. # Enables idle CPU priority for compaction thread. This is not enabled by
  800. # default to prevent compaction from falling too far behind on busy
  801. # systems.
  802. #
  803. #rocksdb_compaction_prio_idle = false
  804. # Enables idle IO priority for compaction thread. This prevents any
  805. # unexpected lag in the server's operation and is usually a good idea.
  806. # Enabled by default.
  807. #
  808. #rocksdb_compaction_ioprio_idle = true
  809. # Disables RocksDB compaction. You should never ever have to set this
  810. # option to true. If you for some reason find yourself needing to use this
  811. # option as part of troubleshooting or a bug, please reach out to us in
  812. # the conduwuit Matrix room with information and details.
  813. #
  814. # Disabling compaction will lead to a significantly bloated and
  815. # explosively large database, gradually poor performance, unnecessarily
  816. # excessive disk read/writes, and slower shutdowns and startups.
  817. #
  818. #rocksdb_compaction = true
  819. # Level of statistics collection. Some admin commands to display database
  820. # statistics may require this option to be set. Database performance may
  821. # be impacted by higher settings.
  822. #
  823. # Option is a number ranging from 0 to 6:
  824. # 0 = No statistics.
  825. # 1 = No statistics in release mode (default).
  826. # 2 to 3 = Statistics with no performance impact.
  827. # 3 to 5 = Statistics with possible performance impact.
  828. # 6 = All statistics.
  829. #
  830. #rocksdb_stats_level = 1
  831. # This is a password that can be configured that will let you login to the
  832. # server bot account (currently `@conduit`) for emergency troubleshooting
  833. # purposes such as recovering/recreating your admin room, or inviting
  834. # yourself back.
  835. #
  836. # See https://conduwuit.puppyirl.gay/troubleshooting.html#lost-access-to-admin-room for other ways to get back into your admin room.
  837. #
  838. # Once this password is unset, all sessions will be logged out for
  839. # security purposes.
  840. #
  841. # example: "F670$2CP@Hw8mG7RY1$%!#Ic7YA"
  842. #
  843. emergency_password = {{ matrix_conduwuit_config_emergency_password | to_json }}
  844. # This item is undocumented. Please contribute documentation for it.
  845. #
  846. #notification_push_path = "/_matrix/push/v1/notify"
  847. # Allow local (your server only) presence updates/requests.
  848. #
  849. # Note that presence on conduwuit is very fast unlike Synapse's. If using
  850. # outgoing presence, this MUST be enabled.
  851. #
  852. #allow_local_presence = true
  853. # Allow incoming federated presence updates/requests.
  854. #
  855. # This option receives presence updates from other servers, but does not
  856. # send any unless `allow_outgoing_presence` is true. Note that presence on
  857. # conduwuit is very fast unlike Synapse's.
  858. #
  859. #allow_incoming_presence = true
  860. # Allow outgoing presence updates/requests.
  861. #
  862. # This option sends presence updates to other servers, but does not
  863. # receive any unless `allow_incoming_presence` is true. Note that presence
  864. # on conduwuit is very fast unlike Synapse's. If using outgoing presence,
  865. # you MUST enable `allow_local_presence` as well.
  866. #
  867. #allow_outgoing_presence = true
  868. # How many seconds without presence updates before you become idle.
  869. # Defaults to 5 minutes.
  870. #
  871. #presence_idle_timeout_s = 300
  872. # How many seconds without presence updates before you become offline.
  873. # Defaults to 30 minutes.
  874. #
  875. #presence_offline_timeout_s = 1800
  876. # Enable the presence idle timer for remote users.
  877. #
  878. # Disabling is offered as an optimization for servers participating in
  879. # many large rooms or when resources are limited. Disabling it may cause
  880. # incorrect presence states (i.e. stuck online) to be seen for some remote
  881. # users.
  882. #
  883. #presence_timeout_remote_users = true
  884. # Allow receiving incoming read receipts from remote servers.
  885. #
  886. #allow_incoming_read_receipts = true
  887. # Allow sending read receipts to remote servers.
  888. #
  889. #allow_outgoing_read_receipts = true
  890. # Allow outgoing typing updates to federation.
  891. #
  892. #allow_outgoing_typing = true
  893. # Allow incoming typing updates from federation.
  894. #
  895. #allow_incoming_typing = true
  896. # Maximum time federation user can indicate typing.
  897. #
  898. #typing_federation_timeout_s = 30
  899. # Minimum time local client can indicate typing. This does not override a
  900. # client's request to stop typing. It only enforces a minimum value in
  901. # case of no stop request.
  902. #
  903. #typing_client_timeout_min_s = 15
  904. # Maximum time local client can indicate typing.
  905. #
  906. #typing_client_timeout_max_s = 45
  907. # Set this to true for conduwuit to compress HTTP response bodies using
  908. # zstd. This option does nothing if conduwuit was not built with
  909. # `zstd_compression` feature. Please be aware that enabling HTTP
  910. # compression may weaken TLS. Most users should not need to enable this.
  911. # See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH
  912. # before deciding to enable this.
  913. #
  914. #zstd_compression = false
  915. # Set this to true for conduwuit to compress HTTP response bodies using
  916. # gzip. This option does nothing if conduwuit was not built with
  917. # `gzip_compression` feature. Please be aware that enabling HTTP
  918. # compression may weaken TLS. Most users should not need to enable this.
  919. # See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH before
  920. # deciding to enable this.
  921. #
  922. # If you are in a large amount of rooms, you may find that enabling this
  923. # is necessary to reduce the significantly large response bodies.
  924. #
  925. #gzip_compression = false
  926. # Set this to true for conduwuit to compress HTTP response bodies using
  927. # brotli. This option does nothing if conduwuit was not built with
  928. # `brotli_compression` feature. Please be aware that enabling HTTP
  929. # compression may weaken TLS. Most users should not need to enable this.
  930. # See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH
  931. # before deciding to enable this.
  932. #
  933. #brotli_compression = false
  934. # Set to true to allow user type "guest" registrations. Some clients like
  935. # Element attempt to register guest users automatically.
  936. #
  937. #allow_guest_registration = false
  938. # Set to true to log guest registrations in the admin room. Note that
  939. # these may be noisy or unnecessary if you're a public homeserver.
  940. #
  941. #log_guest_registrations = false
  942. # Set to true to allow guest registrations/users to auto join any rooms
  943. # specified in `auto_join_rooms`.
  944. #
  945. #allow_guests_auto_join_rooms = false
  946. # Enable the legacy unauthenticated Matrix media repository endpoints.
  947. # These endpoints consist of:
  948. # - /_matrix/media/*/config
  949. # - /_matrix/media/*/upload
  950. # - /_matrix/media/*/preview_url
  951. # - /_matrix/media/*/download/*
  952. # - /_matrix/media/*/thumbnail/*
  953. #
  954. # The authenticated equivalent endpoints are always enabled.
  955. #
  956. # Defaults to true for now, but this is highly subject to change, likely
  957. # in the next release.
  958. #
  959. #allow_legacy_media = true
  960. # This item is undocumented. Please contribute documentation for it.
  961. #
  962. #freeze_legacy_media = true
  963. # Check consistency of the media directory at startup:
  964. # 1. When `media_compat_file_link` is enabled, this check will upgrade
  965. # media when switching back and forth between Conduit and conduwuit.
  966. # Both options must be enabled to handle this.
  967. # 2. When media is deleted from the directory, this check will also delete
  968. # its database entry.
  969. #
  970. # If none of these checks apply to your use cases, and your media
  971. # directory is significantly large setting this to false may reduce
  972. # startup time.
  973. #
  974. #media_startup_check = true
  975. # Enable backward-compatibility with Conduit's media directory by creating
  976. # symlinks of media.
  977. #
  978. # This option is only necessary if you plan on using Conduit again.
  979. # Otherwise setting this to false reduces filesystem clutter and overhead
  980. # for managing these symlinks in the directory. This is now disabled by
  981. # default. You may still return to upstream Conduit but you have to run
  982. # conduwuit at least once with this set to true and allow the
  983. # media_startup_check to take place before shutting down to return to
  984. # Conduit.
  985. #
  986. #media_compat_file_link = false
  987. # Prune missing media from the database as part of the media startup
  988. # checks.
  989. #
  990. # This means if you delete files from the media directory the
  991. # corresponding entries will be removed from the database. This is
  992. # disabled by default because if the media directory is accidentally moved
  993. # or inaccessible, the metadata entries in the database will be lost with
  994. # sadness.
  995. #
  996. #prune_missing_media = false
  997. # Vector list of servers that conduwuit will refuse to download remote
  998. # media from.
  999. #
  1000. #prevent_media_downloads_from = []
  1001. # List of forbidden server names that we will block incoming AND outgoing
  1002. # federation with, and block client room joins / remote user invites.
  1003. #
  1004. # This check is applied on the room ID, room alias, sender server name,
  1005. # sender user's server name, inbound federation X-Matrix origin, and
  1006. # outbound federation handler.
  1007. #
  1008. # Basically "global" ACLs.
  1009. #
  1010. #forbidden_remote_server_names = []
  1011. # List of forbidden server names that we will block all outgoing federated
  1012. # room directory requests for. Useful for preventing our users from
  1013. # wandering into bad servers or spaces.
  1014. #
  1015. #forbidden_remote_room_directory_server_names = []
  1016. # Vector list of IPv4 and IPv6 CIDR ranges / subnets *in quotes* that you
  1017. # do not want conduwuit to send outbound requests to. Defaults to
  1018. # RFC1918, unroutable, loopback, multicast, and testnet addresses for
  1019. # security.
  1020. #
  1021. # Please be aware that this is *not* a guarantee. You should be using a
  1022. # firewall with zones as doing this on the application layer may have
  1023. # bypasses.
  1024. #
  1025. # Currently this does not account for proxies in use like Synapse does.
  1026. #
  1027. # To disable, set this to be an empty vector (`[]`).
  1028. #
  1029. # Defaults to:
  1030. # ["127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12",
  1031. # "192.168.0.0/16", "100.64.0.0/10", "192.0.0.0/24", "169.254.0.0/16",
  1032. # "192.88.99.0/24", "198.18.0.0/15", "192.0.2.0/24", "198.51.100.0/24",
  1033. # "203.0.113.0/24", "224.0.0.0/4", "::1/128", "fe80::/10", "fc00::/7",
  1034. # "2001:db8::/32", "ff00::/8", "fec0::/10"]
  1035. #
  1036. #ip_range_denylist =
  1037. # Optional IP address or network interface-name to bind as the source of
  1038. # URL preview requests. If not set, it will not bind to a specific
  1039. # address or interface.
  1040. #
  1041. # Interface names only supported on Linux, Android, and Fuchsia platforms;
  1042. # all other platforms can specify the IP address. To list the interfaces
  1043. # on your system, use the command `ip link show`.
  1044. #
  1045. # example: `"eth0"` or `"1.2.3.4"`
  1046. #
  1047. #url_preview_bound_interface =
  1048. # Vector list of domains allowed to send requests to for URL previews.
  1049. #
  1050. # This is a *contains* match, not an explicit match. Putting "google.com"
  1051. # will match "https://google.com" and
  1052. # "http://mymaliciousdomainexamplegoogle.com" Setting this to "*" will
  1053. # allow all URL previews. Please note that this opens up significant
  1054. # attack surface to your server, you are expected to be aware of the risks
  1055. # by doing so.
  1056. #
  1057. #url_preview_domain_contains_allowlist = []
  1058. # Vector list of explicit domains allowed to send requests to for URL
  1059. # previews.
  1060. #
  1061. # This is an *explicit* match, not a contains match. Putting "google.com"
  1062. # will match "https://google.com", "http://google.com", but not
  1063. # "https://mymaliciousdomainexamplegoogle.com". Setting this to "*" will
  1064. # allow all URL previews. Please note that this opens up significant
  1065. # attack surface to your server, you are expected to be aware of the risks
  1066. # by doing so.
  1067. #
  1068. #url_preview_domain_explicit_allowlist = []
  1069. # Vector list of explicit domains not allowed to send requests to for URL
  1070. # previews.
  1071. #
  1072. # This is an *explicit* match, not a contains match. Putting "google.com"
  1073. # will match "https://google.com", "http://google.com", but not
  1074. # "https://mymaliciousdomainexamplegoogle.com". The denylist is checked
  1075. # first before allowlist. Setting this to "*" will not do anything.
  1076. #
  1077. #url_preview_domain_explicit_denylist = []
  1078. # Vector list of URLs allowed to send requests to for URL previews.
  1079. #
  1080. # Note that this is a *contains* match, not an explicit match. Putting
  1081. # "google.com" will match "https://google.com/",
  1082. # "https://google.com/url?q=https://mymaliciousdomainexample.com", and
  1083. # "https://mymaliciousdomainexample.com/hi/google.com" Setting this to "*"
  1084. # will allow all URL previews. Please note that this opens up significant
  1085. # attack surface to your server, you are expected to be aware of the risks
  1086. # by doing so.
  1087. #
  1088. #url_preview_url_contains_allowlist = []
  1089. # Maximum amount of bytes allowed in a URL preview body size when
  1090. # spidering. Defaults to 256KB in bytes.
  1091. #
  1092. #url_preview_max_spider_size = 256000
  1093. # Option to decide whether you would like to run the domain allowlist
  1094. # checks (contains and explicit) on the root domain or not. Does not apply
  1095. # to URL contains allowlist. Defaults to false.
  1096. #
  1097. # Example usecase: If this is enabled and you have "wikipedia.org" allowed
  1098. # in the explicit and/or contains domain allowlist, it will allow all
  1099. # subdomains under "wikipedia.org" such as "en.m.wikipedia.org" as the
  1100. # root domain is checked and matched. Useful if the domain contains
  1101. # allowlist is still too broad for you but you still want to allow all the
  1102. # subdomains under a root domain.
  1103. #
  1104. #url_preview_check_root_domain = false
  1105. # List of forbidden room aliases and room IDs as strings of regex
  1106. # patterns.
  1107. #
  1108. # Regex can be used or explicit contains matches can be done by just
  1109. # specifying the words (see example).
  1110. #
  1111. # This is checked upon room alias creation, custom room ID creation if
  1112. # used, and startup as warnings if any room aliases in your database have
  1113. # a forbidden room alias/ID.
  1114. #
  1115. # example: ["19dollarfortnitecards", "b[4a]droom"]
  1116. #
  1117. #forbidden_alias_names = []
  1118. # List of forbidden username patterns/strings.
  1119. #
  1120. # Regex can be used or explicit contains matches can be done by just
  1121. # specifying the words (see example).
  1122. #
  1123. # This is checked upon username availability check, registration, and
  1124. # startup as warnings if any local users in your database have a forbidden
  1125. # username.
  1126. #
  1127. # example: ["administrator", "b[a4]dusernam[3e]"]
  1128. #
  1129. #forbidden_usernames = []
  1130. # Retry failed and incomplete messages to remote servers immediately upon
  1131. # startup. This is called bursting. If this is disabled, said messages may
  1132. # not be delivered until more messages are queued for that server. Do not
  1133. # change this option unless server resources are extremely limited or the
  1134. # scale of the server's deployment is huge. Do not disable this unless you
  1135. # know what you are doing.
  1136. #
  1137. #startup_netburst = true
  1138. # Messages are dropped and not reattempted. The `startup_netburst` option
  1139. # must be enabled for this value to have any effect. Do not change this
  1140. # value unless you know what you are doing. Set this value to -1 to
  1141. # reattempt every message without trimming the queues; this may consume
  1142. # significant disk. Set this value to 0 to drop all messages without any
  1143. # attempt at redelivery.
  1144. #
  1145. #startup_netburst_keep = 50
  1146. # Block non-admin local users from sending room invites (local and
  1147. # remote), and block non-admin users from receiving remote room invites.
  1148. #
  1149. # Admins are always allowed to send and receive all room invites.
  1150. #
  1151. #block_non_admin_invites = false
  1152. # Allow admins to enter commands in rooms other than "#admins" (admin
  1153. # room) by prefixing your message with "\!admin" or "\\!admin" followed up
  1154. # a normal conduwuit admin command. The reply will be publicly visible to
  1155. # the room, originating from the sender.
  1156. #
  1157. # example: \\!admin debug ping puppygock.gay
  1158. #
  1159. #admin_escape_commands = true
  1160. # Automatically activate the conduwuit admin room console / CLI on
  1161. # startup. This option can also be enabled with `--console` conduwuit
  1162. # argument.
  1163. #
  1164. #admin_console_automatic = false
  1165. # List of admin commands to execute on startup.
  1166. #
  1167. # This option can also be configured with the `--execute` conduwuit
  1168. # argument and can take standard shell commands and environment variables
  1169. #
  1170. # For example: `./conduwuit --execute "server admin-notice conduwuit has
  1171. # started up at $(date)"`
  1172. #
  1173. # example: admin_execute = ["debug ping puppygock.gay", "debug echo hi"]`
  1174. #
  1175. #admin_execute = []
  1176. # Ignore errors in startup commands.
  1177. #
  1178. # If false, conduwuit will error and fail to start if an admin execute
  1179. # command (`--execute` / `admin_execute`) fails.
  1180. #
  1181. #admin_execute_errors_ignore = false
  1182. # Controls the max log level for admin command log captures (logs
  1183. # generated from running admin commands). Defaults to "info" on release
  1184. # builds, else "debug" on debug builds.
  1185. #
  1186. #admin_log_capture = "info"
  1187. # The default room tag to apply on the admin room.
  1188. #
  1189. # On some clients like Element, the room tag "m.server_notice" is a
  1190. # special pinned room at the very bottom of your room list. The conduwuit
  1191. # admin room can be pinned here so you always have an easy-to-access
  1192. # shortcut dedicated to your admin room.
  1193. #
  1194. #admin_room_tag = "m.server_notice"
  1195. # Sentry.io crash/panic reporting, performance monitoring/metrics, etc.
  1196. # This is NOT enabled by default. conduwuit's default Sentry reporting
  1197. # endpoint domain is `o4506996327251968.ingest.us.sentry.io`.
  1198. #
  1199. #sentry = false
  1200. # Sentry reporting URL, if a custom one is desired.
  1201. #
  1202. #sentry_endpoint = "https://fe2eb4536aa04949e28eff3128d64757@o4506996327251968.ingest.us.sentry.io/4506996334657536"
  1203. # Report your conduwuit server_name in Sentry.io crash reports and
  1204. # metrics.
  1205. #
  1206. #sentry_send_server_name = false
  1207. # Performance monitoring/tracing sample rate for Sentry.io.
  1208. #
  1209. # Note that too high values may impact performance, and can be disabled by
  1210. # setting it to 0.0 (0%) This value is read as a percentage to Sentry,
  1211. # represented as a decimal. Defaults to 15% of traces (0.15)
  1212. #
  1213. #sentry_traces_sample_rate = 0.15
  1214. # Whether to attach a stacktrace to Sentry reports.
  1215. #
  1216. #sentry_attach_stacktrace = false
  1217. # Send panics to Sentry. This is true by default, but Sentry has to be
  1218. # enabled. The global `sentry` config option must be enabled to send any
  1219. # data.
  1220. #
  1221. #sentry_send_panic = true
  1222. # Send errors to sentry. This is true by default, but sentry has to be
  1223. # enabled. This option is only effective in release-mode; forced to false
  1224. # in debug-mode.
  1225. #
  1226. #sentry_send_error = true
  1227. # Controls the tracing log level for Sentry to send things like
  1228. # breadcrumbs and transactions
  1229. #
  1230. #sentry_filter = "info"
  1231. # Enable the tokio-console. This option is only relevant to developers.
  1232. #
  1233. # For more information, see:
  1234. # https://conduwuit.puppyirl.gay/development.html#debugging-with-tokio-console
  1235. #
  1236. #tokio_console = false
  1237. # This item is undocumented. Please contribute documentation for it.
  1238. #
  1239. #test = false
  1240. # Controls whether admin room notices like account registrations, password
  1241. # changes, account deactivations, room directory publications, etc will be
  1242. # sent to the admin room. Update notices and normal admin command
  1243. # responses will still be sent.
  1244. #
  1245. #admin_room_notices = true
  1246. # Enable database pool affinity support. On supporting systems, block
  1247. # device queue topologies are detected and the request pool is optimized
  1248. # for the hardware; db_pool_workers is determined automatically.
  1249. #
  1250. #db_pool_affinity = true
  1251. # Sets the number of worker threads in the frontend-pool of the database.
  1252. # This number should reflect the I/O capabilities of the system,
  1253. # such as the queue-depth or the number of simultaneous requests in
  1254. # flight. Defaults to 32 or four times the number of CPU cores, whichever
  1255. # is greater.
  1256. #
  1257. # Note: This value is only used if db_pool_affinity is disabled or not
  1258. # detected on the system, otherwise it is determined automatically.
  1259. #
  1260. #db_pool_workers = 32
  1261. # When db_pool_affinity is enabled and detected, the size of any worker
  1262. # group will not exceed the determined value. This is necessary when
  1263. # thread-pooling approach does not scale to the full capabilities of
  1264. # high-end hardware; using detected values without limitation could
  1265. # degrade performance.
  1266. #
  1267. # The value is multiplied by the number of cores which share a device
  1268. # queue, since group workers can be scheduled on any of those cores.
  1269. #
  1270. #db_pool_workers_limit = 64
  1271. # Determines the size of the queues feeding the database's frontend-pool.
  1272. # The size of the queue is determined by multiplying this value with the
  1273. # number of pool workers. When this queue is full, tokio tasks conducting
  1274. # requests will yield until space is available; this is good for
  1275. # flow-control by avoiding buffer-bloat, but can inhibit throughput if
  1276. # too low.
  1277. #
  1278. #db_pool_queue_mult = 4
  1279. # Sets the initial value for the concurrency of streams. This value simply
  1280. # allows overriding the default in the code. The default is 32, which is
  1281. # the same as the default in the code. Note this value is itself
  1282. # overridden by the computed stream_width_scale, unless that is disabled;
  1283. # this value can serve as a fixed-width instead.
  1284. #
  1285. #stream_width_default = 32
  1286. # Scales the stream width starting from a base value detected for the
  1287. # specific system. The base value is the database pool worker count
  1288. # determined from the hardware queue size (e.g. 32 for SSD or 64 or 128+
  1289. # for NVMe). This float allows scaling the width up or down by multiplying
  1290. # it (e.g. 1.5, 2.0, etc). The maximum result can be the size of the pool
  1291. # queue (see: db_pool_queue_mult) as any larger value will stall the tokio
  1292. # task. The value can also be scaled down (e.g. 0.5) to improve
  1293. # responsiveness for many users at the cost of throughput for each.
  1294. #
  1295. # Setting this value to 0.0 causes the stream width to be fixed at the
  1296. # value of stream_width_default. The default scale is 1.0 to match the
  1297. # capabilities detected for the system.
  1298. #
  1299. #stream_width_scale = 1.0
  1300. # Sets the initial amplification factor. This controls batch sizes of
  1301. # requests made by each pool worker, multiplying the throughput of each
  1302. # stream. This value is somewhat abstract from specific hardware
  1303. # characteristics and can be significantly larger than any thread count or
  1304. # queue size. This is because each database query may require several
  1305. # index lookups, thus many database queries in a batch may make progress
  1306. # independently while also sharing index and data blocks which may or may
  1307. # not be cached. It is worthwhile to submit huge batches to reduce
  1308. # complexity. The maximum value is 32768, though sufficient hardware is
  1309. # still advised for that.
  1310. #
  1311. #stream_amplification = 1024
  1312. # Number of sender task workers; determines sender parallelism. Default is
  1313. # '0' which means the value is determined internally, likely matching the
  1314. # number of tokio worker-threads or number of cores, etc. Override by
  1315. # setting a non-zero value.
  1316. #
  1317. #sender_workers = 0
  1318. [global.well_known]
  1319. # The server URL that the client well-known file will serve. This should
  1320. # not contain a port, and should just be a valid HTTPS URL.
  1321. #
  1322. # example: "https://matrix.example.com"
  1323. #
  1324. #client =
  1325. # The server base domain of the URL with a specific port that the server
  1326. # well-known file will serve. This should contain a port at the end, and
  1327. # should not be a URL.
  1328. #
  1329. # example: "matrix.example.com:443"
  1330. #
  1331. #server =
  1332. # This item is undocumented. Please contribute documentation for it.
  1333. #
  1334. #support_page =
  1335. # This item is undocumented. Please contribute documentation for it.
  1336. #
  1337. #support_role =
  1338. # This item is undocumented. Please contribute documentation for it.
  1339. #
  1340. #support_email =
  1341. # This item is undocumented. Please contribute documentation for it.
  1342. #
  1343. #support_mxid =