Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

2018 linhas
69 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2025 MDAD project contributors
  3. SPDX-FileCopyrightText: 2025 Slavi Pantaleev
  4. SPDX-FileCopyrightText: 2025 Suguru Hirahara
  5. SPDX-License-Identifier: AGPL-3.0-or-later
  6. #}
  7. ### continuwuity Configuration
  8. ### For more information, see:
  9. ### https://continuwuity.org/configuration.html
  10. [global]
  11. # The server_name is the pretty name of this server. It is used as a
  12. # suffix for user and room IDs/aliases.
  13. #
  14. # See the docs for reverse proxying and delegation:
  15. # https://continuwuity.org/deploying/generic.html#setting-up-the-reverse-proxy
  16. #
  17. # Also see the `[global.well_known]` config section at the very bottom.
  18. #
  19. # Examples of delegation:
  20. # - https://continuwuity.org/.well-known/matrix/server
  21. # - https://continuwuity.org/.well-known/matrix/client
  22. #
  23. # YOU NEED TO EDIT THIS. THIS CANNOT BE CHANGED AFTER WITHOUT A DATABASE
  24. # WIPE.
  25. #
  26. # example: "continuwuity.org"
  27. #
  28. server_name = {{ matrix_continuwuity_config_server_name | to_json }}
  29. # The default address (IPv4 or IPv6) continuwuity will listen on.
  30. #
  31. # If you are using Docker or a container NAT networking setup, this must
  32. # be "0.0.0.0".
  33. #
  34. # To listen on multiple addresses, specify a vector e.g. ["127.0.0.1",
  35. # "::1"]
  36. #
  37. address = "0.0.0.0"
  38. # The port(s) continuwuity will listen on.
  39. #
  40. # For reverse proxying, see:
  41. # https://continuwuity.org/deploying/generic.html#setting-up-the-reverse-proxy
  42. #
  43. # If you are using Docker, don't change this, you'll need to map an
  44. # external port to this.
  45. #
  46. # To listen on multiple ports, specify a vector e.g. [8080, 8448]
  47. #
  48. port = {{ matrix_continuwuity_config_port_number }}
  49. # The UNIX socket continuwuity will listen on.
  50. #
  51. # continuwuity cannot listen on both an IP address and a UNIX socket. If
  52. # listening on a UNIX socket, you MUST remove/comment the `address` key.
  53. #
  54. # Remember to make sure that your reverse proxy has access to this socket
  55. # file, either by adding your reverse proxy to the appropriate user group
  56. # or granting world R/W permissions with `unix_socket_perms` (666
  57. # minimum).
  58. #
  59. # example: "/run/continuwuity/continuwuity.sock"
  60. #
  61. #unix_socket_path =
  62. # The default permissions (in octal) to create the UNIX socket with.
  63. #
  64. #unix_socket_perms = 660
  65. # This is the only directory where continuwuity will save its data,
  66. # including media. Note: this was previously "/var/lib/matrix-conduit".
  67. #
  68. # YOU NEED TO EDIT THIS.
  69. #
  70. # example: "/var/lib/continuwuity"
  71. #
  72. database_path = "/var/lib/continuwuity"
  73. # continuwuity supports online database backups using RocksDB's Backup
  74. # engine API. To use this, set a database backup path that continuwuity
  75. # can write to.
  76. #
  77. # For more information, see:
  78. # https://continuwuity.org/maintenance.html#backups
  79. #
  80. # example: "/opt/continuwuity-db-backups"
  81. #
  82. #database_backup_path =
  83. # The amount of online RocksDB database backups to keep/retain, if using
  84. # "database_backup_path", before deleting the oldest one.
  85. #
  86. #database_backups_to_keep = 1
  87. # Text which will be added to the end of the user's displayname upon
  88. # registration with a space before the text. In Conduit, this was the
  89. # lightning bolt emoji.
  90. #
  91. # To disable, set this to "" (an empty string).
  92. #
  93. # The default is the trans pride flag.
  94. #
  95. # example: "🏳️‍⚧️"
  96. #
  97. new_user_displayname_suffix = {{ matrix_continuwuity_config_new_user_displayname_suffix | to_json }}
  98. # If enabled, continuwuity will send a simple GET request periodically to
  99. # `https://continuwuity.org/.well-known/continuwuity/announcements` for any new
  100. # announcements or major updates. This is not an update check endpoint.
  101. #
  102. allow_announcements_check = {{ matrix_continuwuity_config_allow_announcements_check | to_json }}
  103. # Set this to any float value to multiply continuwuity's in-memory LRU
  104. # caches with such as "auth_chain_cache_capacity".
  105. #
  106. # May be useful if you have significant memory to spare to increase
  107. # performance.
  108. #
  109. # If you have low memory, reducing this may be viable.
  110. #
  111. # By default, the individual caches such as "auth_chain_cache_capacity"
  112. # are scaled by your CPU core count.
  113. #
  114. #cache_capacity_modifier = 1.0
  115. # Set this to any float value in megabytes for continuwuity to tell the
  116. # database engine that this much memory is available for database read
  117. # caches.
  118. #
  119. # May be useful if you have significant memory to spare to increase
  120. # performance.
  121. #
  122. # Similar to the individual LRU caches, this is scaled up with your CPU
  123. # core count.
  124. #
  125. # This defaults to 128.0 + (64.0 * CPU core count).
  126. #
  127. #db_cache_capacity_mb = varies by system
  128. # Set this to any float value in megabytes for continuwuity to tell the
  129. # database engine that this much memory is available for database write
  130. # caches.
  131. #
  132. # May be useful if you have significant memory to spare to increase
  133. # performance.
  134. #
  135. # Similar to the individual LRU caches, this is scaled up with your CPU
  136. # core count.
  137. #
  138. # This defaults to 48.0 + (4.0 * CPU core count).
  139. #
  140. #db_write_buffer_capacity_mb = varies by system
  141. # This item is undocumented. Please contribute documentation for it.
  142. #
  143. #pdu_cache_capacity = varies by system
  144. # This item is undocumented. Please contribute documentation for it.
  145. #
  146. #auth_chain_cache_capacity = varies by system
  147. # This item is undocumented. Please contribute documentation for it.
  148. #
  149. #shorteventid_cache_capacity = varies by system
  150. # This item is undocumented. Please contribute documentation for it.
  151. #
  152. #eventidshort_cache_capacity = varies by system
  153. # This item is undocumented. Please contribute documentation for it.
  154. #
  155. #eventid_pdu_cache_capacity = varies by system
  156. # This item is undocumented. Please contribute documentation for it.
  157. #
  158. #shortstatekey_cache_capacity = varies by system
  159. # This item is undocumented. Please contribute documentation for it.
  160. #
  161. #statekeyshort_cache_capacity = varies by system
  162. # This item is undocumented. Please contribute documentation for it.
  163. #
  164. #servernameevent_data_cache_capacity = varies by system
  165. # This item is undocumented. Please contribute documentation for it.
  166. #
  167. #stateinfo_cache_capacity = varies by system
  168. # This item is undocumented. Please contribute documentation for it.
  169. #
  170. #roomid_spacehierarchy_cache_capacity = varies by system
  171. # Maximum entries stored in DNS memory-cache. The size of an entry may
  172. # vary so please take care if raising this value excessively. Only
  173. # decrease this when using an external DNS cache. Please note that
  174. # systemd-resolved does *not* count as an external cache, even when
  175. # configured to do so.
  176. #
  177. #dns_cache_entries = 32768
  178. # Minimum time-to-live in seconds for entries in the DNS cache. The
  179. # default may appear high to most administrators; this is by design as the
  180. # majority of NXDOMAINs are correct for a long time (e.g. the server is no
  181. # longer running Matrix). Only decrease this if you are using an external
  182. # DNS cache.
  183. #
  184. #dns_min_ttl = 10800
  185. # Minimum time-to-live in seconds for NXDOMAIN entries in the DNS cache.
  186. # This value is critical for the server to federate efficiently.
  187. # NXDOMAIN's are assumed to not be returning to the federation and
  188. # aggressively cached rather than constantly rechecked.
  189. #
  190. # Defaults to 3 days as these are *very rarely* false negatives.
  191. #
  192. #dns_min_ttl_nxdomain = 259200
  193. # Number of DNS nameserver retries after a timeout or error.
  194. #
  195. #dns_attempts = 10
  196. # The number of seconds to wait for a reply to a DNS query. Please note
  197. # that recursive queries can take up to several seconds for some domains,
  198. # so this value should not be too low, especially on slower hardware or
  199. # resolvers.
  200. #
  201. #dns_timeout = 10
  202. # Fallback to TCP on DNS errors. Set this to false if unsupported by
  203. # nameserver.
  204. #
  205. #dns_tcp_fallback = true
  206. # Enable to query all nameservers until the domain is found. Referred to
  207. # as "trust_negative_responses" in hickory_resolver. This can avoid
  208. # useless DNS queries if the first nameserver responds with NXDOMAIN or
  209. # an empty NOERROR response.
  210. #
  211. #query_all_nameservers = true
  212. # Enable using *only* TCP for querying your specified nameservers instead
  213. # of UDP.
  214. #
  215. # If you are running continuwuity in a container environment, this config
  216. # option may need to be enabled. For more details, see:
  217. # https://continuwuity.org/troubleshooting.html#potential-dns-issues-when-using-docker
  218. #
  219. #query_over_tcp_only = false
  220. # DNS A/AAAA record lookup strategy
  221. #
  222. # Takes a number of one of the following options:
  223. # 1 - Ipv4Only (Only query for A records, no AAAA/IPv6)
  224. #
  225. # 2 - Ipv6Only (Only query for AAAA records, no A/IPv4)
  226. #
  227. # 3 - Ipv4AndIpv6 (Query for A and AAAA records in parallel, uses whatever
  228. # returns a successful response first)
  229. #
  230. # 4 - Ipv6thenIpv4 (Query for AAAA record, if that fails then query the A
  231. # record)
  232. #
  233. # 5 - Ipv4thenIpv6 (Query for A record, if that fails then query the AAAA
  234. # record)
  235. #
  236. # If you don't have IPv6 networking, then for better DNS performance it
  237. # may be suitable to set this to Ipv4Only (1) as you will never ever use
  238. # the AAAA record contents even if the AAAA record is successful instead
  239. # of the A record.
  240. #
  241. #ip_lookup_strategy = 5
  242. # Max request size for file uploads in bytes. Defaults to 20MB.
  243. #
  244. max_request_size = {{ matrix_continuwuity_config_max_request_size }}
  245. # This item is undocumented. Please contribute documentation for it.
  246. #
  247. #max_fetch_prev_events = 192
  248. # How many incoming federation transactions the server is willing to be
  249. # processing at any given time before it becomes overloaded and starts
  250. # rejecting further transactions until some slots become available.
  251. #
  252. # Setting this value too low or too high may result in unstable
  253. # federation, and setting it too high may cause runaway resource usage.
  254. #
  255. #max_concurrent_inbound_transactions = 150
  256. # Maximum age (in seconds) for cached federation transaction responses.
  257. # Entries older than this will be removed during cleanup.
  258. #
  259. #transaction_id_cache_max_age_secs = 7200 (2 hours)
  260. # Maximum number of cached federation transaction responses.
  261. # When the cache exceeds this limit, older entries will be removed.
  262. #
  263. #transaction_id_cache_max_entries = 8192
  264. # Default/base connection timeout (seconds). This is used only by URL
  265. # previews and update/news endpoint checks.
  266. #
  267. #request_conn_timeout = 10
  268. # Default/base request timeout (seconds). The time waiting to receive more
  269. # data from another server. This is used only by URL previews,
  270. # update/news, and misc endpoint checks.
  271. #
  272. #request_timeout = 35
  273. # Default/base request total timeout (seconds). The time limit for a whole
  274. # request. This is set very high to not cancel healthy requests while
  275. # serving as a backstop. This is used only by URL previews and update/news
  276. # endpoint checks.
  277. #
  278. #request_total_timeout = 320
  279. # Default/base idle connection pool timeout (seconds). This is used only
  280. # by URL previews and update/news endpoint checks.
  281. #
  282. #request_idle_timeout = 5
  283. # Default/base max idle connections per host. This is used only by URL
  284. # previews and update/news endpoint checks. Defaults to 1 as generally the
  285. # same open connection can be re-used.
  286. #
  287. #request_idle_per_host = 1
  288. # Federation well-known resolution connection timeout (seconds).
  289. #
  290. #well_known_conn_timeout = 6
  291. # Federation HTTP well-known resolution request timeout (seconds).
  292. #
  293. #well_known_timeout = 10
  294. # Federation client connection timeout (seconds). You should not set this
  295. # to high values, as dead homeservers can significantly slow down
  296. # federation, specifically key retrieval, which will take roughly the
  297. # amount of time you configure here given that a homeserver doesn't
  298. # respond. This will cause most clients to time out /keys/query, causing
  299. # E2EE and device verification to fail.
  300. #
  301. #federation_conn_timeout = 10
  302. # Federation client request timeout (seconds). You most definitely want
  303. # this to be high to account for extremely large room joins, slow
  304. # homeservers, your own resources etc.
  305. #
  306. # Joins have 6x the timeout.
  307. #
  308. #federation_timeout = 60
  309. # MSC4284 Policy server request timeout (seconds). Generally policy
  310. # servers should respond near instantly, however may slow down under
  311. # load. If a policy server doesn't respond in a short amount of time, the
  312. # room it is configured in may become unusable if this limit is set too
  313. # high. 10 seconds is a good default, however dropping this to 3-5 seconds
  314. # can be acceptable.
  315. #
  316. # Please be aware that policy requests are *NOT* currently re-tried, so if
  317. # a spam check request fails, the event will be assumed to be not spam,
  318. # which in some cases may result in spam being sent to or received from
  319. # the room that would typically be prevented.
  320. #
  321. # About policy servers: https://matrix.org/blog/2025/04/introducing-policy-servers/
  322. #
  323. #policy_server_request_timeout = 10
  324. # Federation client idle connection pool timeout (seconds).
  325. #
  326. #federation_idle_timeout = 25
  327. # Federation client max idle connections per host. Defaults to 1 as
  328. # generally the same open connection can be re-used.
  329. #
  330. #federation_idle_per_host = 1
  331. # Federation sender request timeout (seconds). The time it takes for the
  332. # remote server to process sent transactions can take a while.
  333. #
  334. #sender_timeout = 180
  335. # Federation sender idle connection pool timeout (seconds).
  336. #
  337. #sender_idle_timeout = 180
  338. # Federation sender transaction retry backoff limit (seconds).
  339. #
  340. #sender_retry_backoff_limit = 86400
  341. # Appservice URL request connection timeout. Defaults to 35 seconds as
  342. # generally appservices are hosted within the same network.
  343. #
  344. #appservice_timeout = 35
  345. # Appservice URL idle connection pool timeout (seconds).
  346. #
  347. #appservice_idle_timeout = 300
  348. # Notification gateway pusher request connection timeout (seconds).
  349. #
  350. #pusher_conn_timeout = 15
  351. # Notification gateway pusher total request timeout (seconds).
  352. #
  353. #pusher_timeout = 60
  354. # Notification gateway pusher idle connection pool timeout (seconds).
  355. #
  356. #pusher_idle_timeout = 15
  357. # Maximum time to receive a request from a client (seconds).
  358. #
  359. #client_receive_timeout = 75
  360. # Maximum time to process a request received from a client (seconds).
  361. #
  362. #client_request_timeout = 180
  363. # Maximum time to transmit a response to a client (seconds)
  364. #
  365. #client_response_timeout = 120
  366. # Grace period for clean shutdown of client requests (seconds).
  367. #
  368. #client_shutdown_timeout = 10
  369. # Grace period for clean shutdown of federation requests (seconds).
  370. #
  371. #sender_shutdown_timeout = 5
  372. # Enables registration. If set to false, no users can register on this
  373. # server.
  374. #
  375. # If set to true without a token configured, users can register with no
  376. # form of 2nd-step only if you set the following option to true:
  377. # `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
  378. #
  379. # If you would like registration only via token reg, please configure
  380. # `registration_token` or `registration_token_file`.
  381. #
  382. allow_registration = {{ matrix_continuwuity_config_allow_registration | to_json }}
  383. # If registration is enabled, and this setting is true, new users
  384. # registered after the first admin user will be automatically suspended
  385. # and will require an admin to run `!admin users unsuspend <user_id>`.
  386. #
  387. # Suspended users are still able to read messages, make profile updates,
  388. # leave rooms, and deactivate their account, however cannot send messages,
  389. # invites, or create/join or otherwise modify rooms.
  390. # They are effectively read-only.
  391. #
  392. # If you want to use this to screen people who register on your server,
  393. # you should add a room to `auto_join_rooms` that is public, and contains
  394. # information that new users can read (since they won't be able to DM
  395. # anyone, or send a message, and may be confused).
  396. #
  397. suspend_on_register = {{ matrix_continuwuity_config_suspend_on_register | to_json }}
  398. # Enabling this setting opens registration to anyone without restrictions.
  399. # This makes your server vulnerable to abuse
  400. #
  401. yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = {{ matrix_continuwuity_config_yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse | to_json }}
  402. # A static registration token that new users will have to provide when
  403. # creating an account. If unset and `allow_registration` is true,
  404. # you must set
  405. # `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
  406. # to true to allow open registration without any conditions.
  407. #
  408. # YOU NEED TO EDIT THIS OR USE registration_token_file.
  409. #
  410. # example: "o&^uCtes4HPf0Vu@F20jQeeWE7"
  411. #
  412. registration_token = {{ matrix_continuwuity_config_registration_token | to_json }}
  413. # Path to a file on the system that gets read for additional registration
  414. # tokens. Multiple tokens can be added if you separate them with
  415. # whitespace
  416. #
  417. # continuwuity must be able to access the file, and it must not be empty
  418. #
  419. # example: "/etc/continuwuity/.reg_token"
  420. #
  421. #registration_token_file =
  422. # The public site key for reCaptcha. If this is provided, reCaptcha
  423. # becomes required during registration. If both captcha *and*
  424. # registration token are enabled, both will be required during
  425. # registration.
  426. #
  427. # IMPORTANT: "Verify the origin of reCAPTCHA solutions" **MUST** BE
  428. # DISABLED IF YOU WANT THE CAPTCHA TO WORK IN 3RD PARTY CLIENTS, OR
  429. # CLIENTS HOSTED ON DOMAINS OTHER THAN YOUR OWN!
  430. #
  431. # Registration must be enabled (`allow_registration` must be true) for
  432. # this to have any effect.
  433. #
  434. recaptcha_site_key = {{ matrix_continuwuity_config_recaptcha_site_key | to_json }}
  435. # The private site key for reCaptcha.
  436. # If this is omitted, captcha registration will not work,
  437. # even if `recaptcha_site_key` is set.
  438. #
  439. recaptcha_private_site_key = {{ matrix_continuwuity_config_recaptcha_private_site_key | to_json }}
  440. # Controls whether encrypted rooms and events are allowed.
  441. #
  442. allow_encryption = {{ matrix_continuwuity_config_allow_encryption | to_json }}
  443. # Controls whether federation is allowed or not. It is not recommended to
  444. # disable this after the fact due to potential federation breakage.
  445. #
  446. allow_federation = {{ matrix_continuwuity_config_allow_federation | to_json }}
  447. # Allows federation requests to be made to itself
  448. #
  449. # This isn't intended and is very likely a bug if federation requests are
  450. # being sent to yourself. This currently mainly exists for development
  451. # purposes.
  452. #
  453. #federation_loopback = false
  454. # Always calls /forget on behalf of the user if leaving a room. This is a
  455. # part of MSC4267 "Automatically forgetting rooms on leave"
  456. #
  457. forget_forced_upon_leave = {{ matrix_continuwuity_config_forget_forced_upon_leave | to_json }}
  458. # Set this to true to require authentication on the normally
  459. # unauthenticated profile retrieval endpoints (GET)
  460. # "/_matrix/client/v3/profile/{userId}".
  461. #
  462. # This can prevent profile scraping.
  463. #
  464. #require_auth_for_profile_requests = false
  465. # Set this to true to allow your server's public room directory to be
  466. # federated. Set this to false to protect against /publicRooms spiders,
  467. # but will forbid external users from viewing your server's public room
  468. # directory. If federation is disabled entirely (`allow_federation`), this
  469. # is inherently false.
  470. #
  471. #allow_public_room_directory_over_federation = false
  472. # Allow guests/unauthenticated users to access TURN credentials.
  473. #
  474. # This is the equivalent of Synapse's `turn_allow_guests` config option.
  475. # This allows any unauthenticated user to call the endpoint
  476. # `/_matrix/client/v3/voip/turnServer`.
  477. #
  478. # It is unlikely you need to enable this as all major clients support
  479. # authentication for this endpoint and prevents misuse of your TURN server
  480. # from potential bots.
  481. #
  482. #turn_allow_guests = false
  483. # Set this to true to lock down your server's public room directory and
  484. # only allow admins to publish rooms to the room directory. Unpublishing
  485. # is still allowed by all users with this enabled.
  486. #
  487. #lockdown_public_room_directory = false
  488. # Set this to true to allow federating device display names / allow
  489. # external users to see your device display name. If federation is
  490. # disabled entirely (`allow_federation`), this is inherently false. For
  491. # privacy reasons, this is best left disabled.
  492. #
  493. #allow_device_name_federation = false
  494. # Config option to allow or disallow incoming federation requests that
  495. # obtain the profiles of our local users from
  496. # `/_matrix/federation/v1/query/profile`
  497. #
  498. # Increases privacy of your local user's such as display names, but some
  499. # remote users may get a false "this user does not exist" error when they
  500. # try to invite you to a DM or room. Also can protect against profile
  501. # spiders.
  502. #
  503. # This is inherently false if `allow_federation` is disabled
  504. #
  505. #allow_inbound_profile_lookup_federation_requests = true
  506. # Allow standard users to create rooms. Appservices and admins are always
  507. # allowed to create rooms
  508. #
  509. allow_room_creation = {{ matrix_continuwuity_config_allow_room_creation | to_json }}
  510. # Set to false to disable users from joining or creating room versions
  511. # that aren't officially supported by continuwuity.
  512. #
  513. # continuwuity officially supports room versions 6 - 11.
  514. #
  515. # continuwuity has slightly experimental (though works fine in practice)
  516. # support for versions 3 - 5.
  517. #
  518. #allow_unstable_room_versions = true
  519. # Default room version continuwuity will create rooms with.
  520. # Note that this has to be a string since the room version is a string
  521. # rather than an integer. Forgetting the quotes will make the server fail
  522. # to start!
  523. #
  524. # Per spec, room version "11" is the default.
  525. #
  526. default_room_version = {{ matrix_continuwuity_config_default_room_version | to_json }}
  527. # Enable OpenTelemetry OTLP tracing export. This replaces the deprecated
  528. # Jaeger exporter. Traces will be sent via OTLP to a collector (such as
  529. # Jaeger) that supports the OpenTelemetry Protocol.
  530. #
  531. # Configure your OTLP endpoint using the OTEL_EXPORTER_OTLP_ENDPOINT
  532. # environment variable (defaults to http://localhost:4318).
  533. #
  534. #allow_otlp = false
  535. # Filter for OTLP tracing spans. This controls which spans are exported
  536. # to the OTLP collector.
  537. #
  538. #otlp_filter = "info"
  539. # Protocol to use for OTLP tracing export. Options are "http" or "grpc".
  540. # The HTTP protocol uses port 4318 by default, while gRPC uses port 4317.
  541. #
  542. #otlp_protocol = "http"
  543. # If the 'perf_measurements' compile-time feature is enabled, enables
  544. # collecting folded stack trace profile of tracing spans using
  545. # tracing_flame. The resulting profile can be visualized with inferno[1],
  546. # speedscope[2], or a number of other tools.
  547. #
  548. # [1]: https://github.com/jonhoo/inferno
  549. # [2]: www.speedscope.app
  550. #
  551. #tracing_flame = false
  552. # This item is undocumented. Please contribute documentation for it.
  553. #
  554. #tracing_flame_filter = "info"
  555. # This item is undocumented. Please contribute documentation for it.
  556. #
  557. #tracing_flame_output_path = "./tracing.folded"
  558. # Examples:
  559. #
  560. # - No proxy (default):
  561. #
  562. # proxy = "none"
  563. #
  564. # - For global proxy, create the section at the bottom of this file:
  565. #
  566. # [global.proxy]
  567. # global = { url = "socks5h://localhost:9050" }
  568. #
  569. # - To proxy some domains:
  570. #
  571. # [global.proxy]
  572. # [[global.proxy.by_domain]]
  573. # url = "socks5h://localhost:9050"
  574. # include = ["*.onion", "matrix.myspecial.onion"]
  575. # exclude = ["*.myspecial.onion"]
  576. #
  577. # Include vs. Exclude:
  578. #
  579. # - If include is an empty list, it is assumed to be `["*"]`.
  580. #
  581. # - If a domain matches both the exclude and include list, the proxy will
  582. # only be used if it was included because of a more specific rule than
  583. # it was excluded. In the above example, the proxy would be used for
  584. # `ordinary.onion`, `matrix.myspecial.onion`, but not
  585. # `hello.myspecial.onion`.
  586. #
  587. #proxy = "none"
  588. # Servers listed here will be used to gather public keys of other servers
  589. # (notary trusted key servers).
  590. #
  591. # Currently, continuwuity doesn't support inbound batched key requests, so
  592. # this list should only contain other Synapse servers.
  593. #
  594. # example: ["matrix.org", "tchncs.de"]
  595. #
  596. trusted_servers = {{ matrix_continuwuity_config_trusted_servers | to_json }}
  597. # Whether to query the servers listed in trusted_servers first or query
  598. # the origin server first. For best security, querying the origin server
  599. # first is advised to minimize the exposure to a compromised trusted
  600. # server. For maximum federation/join performance this can be set to true,
  601. # however other options exist to query trusted servers first under
  602. # specific high-load circumstances and should be evaluated before setting
  603. # this to true.
  604. #
  605. #query_trusted_key_servers_first = false
  606. # Whether to query the servers listed in trusted_servers first
  607. # specifically on room joins. This option limits the exposure to a
  608. # compromised trusted server to room joins only. The join operation
  609. # requires gathering keys from many origin servers which can cause
  610. # significant delays. Therefore this defaults to true to mitigate
  611. # unexpected delays out-of-the-box. The security-paranoid or those willing
  612. # to tolerate delays are advised to set this to false. Note that setting
  613. # query_trusted_key_servers_first to true causes this option to be
  614. # ignored.
  615. #
  616. #query_trusted_key_servers_first_on_join = true
  617. # Only query trusted servers for keys and never the origin server. This is
  618. # intended for clusters or custom deployments using their trusted_servers
  619. # as forwarding-agents to cache and deduplicate requests. Notary servers
  620. # do not act as forwarding-agents by default, therefore do not enable this
  621. # unless you know exactly what you are doing.
  622. #
  623. #only_query_trusted_key_servers = false
  624. # Maximum number of keys to request in each trusted server batch query.
  625. #
  626. #trusted_server_batch_size = 1024
  627. # Max log level for continuwuity. Allows debug, info, warn, or error.
  628. #
  629. # See also:
  630. # https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
  631. #
  632. # **Caveat**:
  633. # For release builds, the tracing crate is configured to only implement
  634. # levels higher than error to avoid unnecessary overhead in the compiled
  635. # binary from trace macros. For debug builds, this restriction is not
  636. # applied.
  637. #
  638. log = {{ matrix_continuwuity_config_log | to_json }}
  639. # Output logs with ANSI colours.
  640. #
  641. #log_colors = true
  642. # Configures the span events which will be outputted with the log.
  643. #
  644. #log_span_events = "none"
  645. # Configures whether CONTINUWUITY_LOG EnvFilter matches values using
  646. # regular expressions. See the tracing_subscriber documentation on
  647. # Directives.
  648. #
  649. #log_filter_regex = true
  650. # Toggles the display of ThreadId in tracing log output.
  651. #
  652. #log_thread_ids = false
  653. # Enable journald logging on Unix platforms
  654. #
  655. # When enabled, log output will be sent to the systemd journal
  656. # This is only supported on Unix platforms
  657. #
  658. #log_to_journald = false
  659. # The syslog identifier to use with journald logging
  660. #
  661. # Only used when journald logging is enabled
  662. #
  663. # Defaults to the binary name
  664. #
  665. #journald_identifier =
  666. # OpenID token expiration/TTL in seconds.
  667. #
  668. # These are the OpenID tokens that are primarily used for Matrix account
  669. # integrations (e.g. Vector Integrations in Element), *not* OIDC/OpenID
  670. # Connect/etc.
  671. #
  672. #openid_token_ttl = 3600
  673. # Allow an existing session to mint a login token for another client.
  674. # This requires interactive authentication, but has security ramifications
  675. # as a malicious client could use the mechanism to spawn more than one
  676. # session.
  677. # Enabled by default.
  678. #
  679. #login_via_existing_session = true
  680. # Login token expiration/TTL in milliseconds.
  681. #
  682. # These are short-lived tokens for the m.login.token endpoint.
  683. # This is used to allow existing sessions to create new sessions.
  684. # see login_via_existing_session.
  685. #
  686. #login_token_ttl = 120000
  687. # Static TURN username to provide the client if not using a shared secret
  688. # ("turn_secret"), It is recommended to use a shared secret over static
  689. # credentials.
  690. #
  691. {% if matrix_continuwuity_config_turn_username != '' %}
  692. turn_username = {{ matrix_continuwuity_config_turn_username | to_json }}
  693. {% endif %}
  694. # Static TURN password to provide the client if not using a shared secret
  695. # ("turn_secret"). It is recommended to use a shared secret over static
  696. # credentials.
  697. #
  698. {% if matrix_continuwuity_config_turn_password != '' %}
  699. turn_password = {{ matrix_continuwuity_config_turn_password | to_json }}
  700. {% endif %}
  701. # Vector list of TURN URIs/servers to use.
  702. #
  703. # Replace "example.turn.uri" with your TURN domain, such as the coturn
  704. # "realm" config option. If using TURN over TLS, replace the URI prefix
  705. # "turn:" with "turns:".
  706. #
  707. # example: ["turn:example.turn.uri?transport=udp",
  708. # "turn:example.turn.uri?transport=tcp"]
  709. #
  710. turn_uris = {{ matrix_continuwuity_config_turn_uris | to_json }}
  711. # TURN secret to use for generating the HMAC-SHA1 hash apart of username
  712. # and password generation.
  713. #
  714. # This is more secure, but if needed you can use traditional static
  715. # username/password credentials.
  716. #
  717. {% if matrix_continuwuity_config_turn_secret != '' %}
  718. turn_secret = {{ matrix_continuwuity_config_turn_secret | to_json }}
  719. {% endif %}
  720. # TURN secret to use that's read from the file path specified.
  721. #
  722. # This takes priority over "turn_secret" first, and falls back to
  723. # "turn_secret" if invalid or failed to open.
  724. #
  725. # example: "/etc/continuwuity/.turn_secret"
  726. #
  727. #turn_secret_file =
  728. # TURN TTL, in seconds.
  729. #
  730. #turn_ttl = 86400
  731. # List/vector of room IDs or room aliases that continuwuity will make
  732. # newly registered users join. The rooms specified must be rooms that you
  733. # have joined at least once on the server, and must be public.
  734. #
  735. # example: ["#continuwuity:continuwuity.org",
  736. # "!main-1:continuwuity.org"]
  737. #
  738. auto_join_rooms = {{ matrix_continuwuity_config_auto_join_rooms | to_json }}
  739. # Config option to automatically deactivate the account of any user who
  740. # attempts to join a:
  741. # - banned room
  742. # - forbidden room alias
  743. # - room alias or ID with a forbidden server name
  744. #
  745. # This may be useful if all your banned lists consist of toxic rooms or
  746. # servers that no good faith user would ever attempt to join, and
  747. # to automatically remediate the problem without any admin user
  748. # intervention.
  749. #
  750. # This will also make the user leave all rooms. Federation (e.g. remote
  751. # room invites) are ignored here.
  752. #
  753. # Defaults to false as rooms can be banned for non-moderation-related
  754. # reasons and this performs a full user deactivation.
  755. #
  756. #auto_deactivate_banned_room_attempts = false
  757. # RocksDB log level. This is not the same as continuwuity's log level.
  758. # This is the log level for the RocksDB engine/library which show up in
  759. # your database folder/path as `LOG` files. continuwuity will log RocksDB
  760. # errors as normal through tracing or panics if severe for safety.
  761. #
  762. #rocksdb_log_level = "error"
  763. # This item is undocumented. Please contribute documentation for it.
  764. #
  765. #rocksdb_log_stderr = false
  766. # Max RocksDB `LOG` file size before rotating in bytes. Defaults to 4MB in
  767. # bytes.
  768. #
  769. #rocksdb_max_log_file_size = 4194304
  770. # Time in seconds before RocksDB will forcibly rotate logs.
  771. #
  772. #rocksdb_log_time_to_roll = 0
  773. # Set this to true to use RocksDB config options that are tailored to HDDs
  774. # (slower device storage).
  775. #
  776. # It is worth noting that by default, continuwuity will use RocksDB with
  777. # Direct IO enabled. *Generally* speaking this improves performance as it
  778. # bypasses buffered I/O (system page cache). However there is a potential
  779. # chance that Direct IO may cause issues with database operations if your
  780. # setup is uncommon. This has been observed with FUSE filesystems, and
  781. # possibly ZFS filesystem. RocksDB generally deals/corrects these issues
  782. # but it cannot account for all setups. If you experience any weird
  783. # RocksDB issues, try enabling this option as it turns off Direct IO and
  784. # feel free to report in the continuwuity Matrix room if this option fixes
  785. # your DB issues.
  786. #
  787. # For more information, see:
  788. # https://github.com/facebook/rocksdb/wiki/Direct-IO
  789. #
  790. #rocksdb_optimize_for_spinning_disks = false
  791. # Enables direct-io to increase database performance via unbuffered I/O.
  792. #
  793. # For more details about direct I/O and RockDB, see:
  794. # https://github.com/facebook/rocksdb/wiki/Direct-IO
  795. #
  796. # Set this option to false if the database resides on a filesystem which
  797. # does not support direct-io like FUSE, or any form of complex filesystem
  798. # setup such as possibly ZFS.
  799. #
  800. #rocksdb_direct_io = true
  801. # Amount of threads that RocksDB will use for parallelism on database
  802. # operations such as cleanup, sync, flush, compaction, etc. Set to 0 to
  803. # use all your logical threads. Defaults to your CPU logical thread count.
  804. #
  805. #rocksdb_parallelism_threads = varies by system
  806. # Maximum number of LOG files RocksDB will keep. This must *not* be set to
  807. # 0. It must be at least 1. Defaults to 3 as these are not very useful
  808. # unless troubleshooting/debugging a RocksDB bug.
  809. #
  810. #rocksdb_max_log_files = 3
  811. # Type of RocksDB database compression to use.
  812. #
  813. # Available options are "zstd", "bz2", "lz4", or "none".
  814. #
  815. # It is best to use ZSTD as an overall good balance between
  816. # speed/performance, storage, IO amplification, and CPU usage. For more
  817. # performance but less compression (more storage used) and less CPU usage,
  818. # use LZ4.
  819. #
  820. # For more details, see:
  821. # https://github.com/facebook/rocksdb/wiki/Compression
  822. #
  823. # "none" will disable compression.
  824. #
  825. #rocksdb_compression_algo = "zstd"
  826. # Level of compression the specified compression algorithm for RocksDB to
  827. # use.
  828. #
  829. # Default is 32767, which is internally read by RocksDB as the default
  830. # magic number and translated to the library's default compression level
  831. # as they all differ. See their `kDefaultCompressionLevel`.
  832. #
  833. # Note when using the default value we may override it with a setting
  834. # tailored specifically for continuwuity.
  835. #
  836. #rocksdb_compression_level = 32767
  837. # Level of compression the specified compression algorithm for the
  838. # bottommost level/data for RocksDB to use. Default is 32767, which is
  839. # internally read by RocksDB as the default magic number and translated to
  840. # the library's default compression level as they all differ. See their
  841. # `kDefaultCompressionLevel`.
  842. #
  843. # Since this is the bottommost level (generally old and least used data),
  844. # it may be desirable to have a very high compression level here as it's
  845. # less likely for this data to be used. Research your chosen compression
  846. # algorithm.
  847. #
  848. # Note when using the default value we may override it with a setting
  849. # tailored specifically for continuwuity.
  850. #
  851. #rocksdb_bottommost_compression_level = 32767
  852. # Whether to enable RocksDB's "bottommost_compression".
  853. #
  854. # At the expense of more CPU usage, this will further compress the
  855. # database to reduce more storage. It is recommended to use ZSTD
  856. # compression with this for best compression results. This may be useful
  857. # if you're trying to reduce storage usage from the database.
  858. #
  859. # See https://github.com/facebook/rocksdb/wiki/Compression for more details.
  860. #
  861. #rocksdb_bottommost_compression = true
  862. # Database recovery mode (for RocksDB WAL corruption).
  863. #
  864. # Use this option when the server reports corruption and refuses to start.
  865. # Set mode 2 (PointInTime) to cleanly recover from this corruption. The
  866. # server will continue from the last good state, several seconds or
  867. # minutes prior to the crash. Clients may have to run "clear-cache &
  868. # reload" to account for the rollback. Upon success, you may reset the
  869. # mode back to default and restart again. Please note in some cases the
  870. # corruption error may not be cleared for at least 30 minutes of operation
  871. # in PointInTime mode.
  872. #
  873. # As a very last ditch effort, if PointInTime does not fix or resolve
  874. # anything, you can try mode 3 (SkipAnyCorruptedRecord) but this will
  875. # leave the server in a potentially inconsistent state.
  876. #
  877. # The default mode 1 (TolerateCorruptedTailRecords) will automatically
  878. # drop the last entry in the database if corrupted during shutdown, but
  879. # nothing more. It is extraordinarily unlikely this will desynchronize
  880. # clients. To disable any form of silent rollback set mode 0
  881. # (AbsoluteConsistency).
  882. #
  883. # The options are:
  884. # 0 = AbsoluteConsistency
  885. # 1 = TolerateCorruptedTailRecords (default)
  886. # 2 = PointInTime (use me if trying to recover)
  887. # 3 = SkipAnyCorruptedRecord (you now voided your Continuwuity warranty)
  888. #
  889. # For more information on these modes, see:
  890. # https://github.com/facebook/rocksdb/wiki/WAL-Recovery-Modes
  891. #
  892. # For more details on recovering a corrupt database, see:
  893. # https://continuwuity.org/troubleshooting.html#database-corruption
  894. #
  895. #rocksdb_recovery_mode = 1
  896. # Enables or disables paranoid SST file checks. This can improve RocksDB
  897. # database consistency at a potential performance impact due to further
  898. # safety checks ran.
  899. #
  900. # For more information, see:
  901. # https://github.com/facebook/rocksdb/wiki/Online-Verification#columnfamilyoptionsparanoid_file_checks
  902. #
  903. #rocksdb_paranoid_file_checks = false
  904. # Enables or disables checksum verification in rocksdb at runtime.
  905. # Checksums are usually hardware accelerated with low overhead; they are
  906. # enabled in rocksdb by default. Older or slower platforms may see gains
  907. # from disabling.
  908. #
  909. #rocksdb_checksums = true
  910. # Enables the "atomic flush" mode in rocksdb. This option is not intended
  911. # for users. It may be removed or ignored in future versions. Atomic flush
  912. # may be enabled by the paranoid to possibly improve database integrity at
  913. # the cost of performance.
  914. #
  915. #rocksdb_atomic_flush = false
  916. # Database repair mode (for RocksDB SST corruption).
  917. #
  918. # Use this option when the server reports corruption while running or
  919. # panics. If the server refuses to start use the recovery mode options
  920. # first. Corruption errors containing the acronym 'SST' which occur after
  921. # startup will likely require this option.
  922. #
  923. # - Backing up your database directory is recommended prior to running the
  924. # repair.
  925. #
  926. # - Disabling repair mode and restarting the server is recommended after
  927. # running the repair.
  928. #
  929. # See https://continuwuity.org/troubleshooting.html#database-corruption for more details on recovering a corrupt database.
  930. #
  931. #rocksdb_repair = false
  932. # Enables idle CPU priority for compaction thread. This is not enabled by
  933. # default to prevent compaction from falling too far behind on busy
  934. # systems.
  935. #
  936. #rocksdb_compaction_prio_idle = false
  937. # Enables idle IO priority for compaction thread. This prevents any
  938. # unexpected lag in the server's operation and is usually a good idea.
  939. # Enabled by default.
  940. #
  941. #rocksdb_compaction_ioprio_idle = true
  942. # Enables RocksDB compaction. You should never ever have to set this
  943. # option to false. If you for some reason find yourself needing to use
  944. # this option as part of troubleshooting or a bug, please reach out to us
  945. # in the continuwuity Matrix room with information and details.
  946. #
  947. # Disabling compaction will lead to a significantly bloated and
  948. # explosively large database, gradually poor performance, unnecessarily
  949. # excessive disk read/writes, and slower shutdowns and startups.
  950. #
  951. #rocksdb_compaction = true
  952. # Level of statistics collection. Some admin commands to display database
  953. # statistics may require this option to be set. Database performance may
  954. # be impacted by higher settings.
  955. #
  956. # Option is a number ranging from 0 to 6:
  957. # 0 = No statistics.
  958. # 1 = No statistics in release mode (default).
  959. # 2 to 3 = Statistics with no performance impact.
  960. # 3 to 5 = Statistics with possible performance impact.
  961. # 6 = All statistics.
  962. #
  963. #rocksdb_stats_level = 1
  964. # This is a password that can be configured that will let you login to the
  965. # server bot account (currently `@conduit`) for emergency troubleshooting
  966. # purposes such as recovering/recreating your admin room, or inviting
  967. # yourself back.
  968. #
  969. # See https://continuwuity.org/troubleshooting.html#lost-access-to-admin-room for other ways to get back into your admin room.
  970. #
  971. # Once this password is unset, all sessions will be logged out for
  972. # security purposes.
  973. #
  974. # example: "F670$2CP@Hw8mG7RY1$%!#Ic7YA"
  975. #
  976. {% if matrix_continuwuity_config_emergency_password != '' %}
  977. emergency_password = {{ matrix_continuwuity_config_emergency_password | to_json }}
  978. {% endif %}
  979. # This item is undocumented. Please contribute documentation for it.
  980. #
  981. #notification_push_path = "/_matrix/push/v1/notify"
  982. # Allow local (your server only) presence updates/requests.
  983. #
  984. # Local presence must be enabled for outgoing presence to function.
  985. #
  986. # Note that local presence is not as heavy on the CPU as federated
  987. # presence, but will still become more expensive the more local users you
  988. # have.
  989. #
  990. #allow_local_presence = true
  991. # Allow incoming federated presence updates.
  992. #
  993. # This option enables processing inbound presence updates from other
  994. # servers. Without it, remote users will appear as if they are always
  995. # offline to your local users. This does not affect typing indicators or
  996. # read receipts.
  997. #
  998. #allow_incoming_presence = true
  999. # Allow outgoing presence updates/requests.
  1000. #
  1001. # This option sends presence updates to other servers, and requires that
  1002. # `allow_local_presence` is also enabled.
  1003. #
  1004. # Note that outgoing presence is very heavy on the CPU and network, and
  1005. # will typically cause extreme strain and slowdowns for no real benefit.
  1006. # There are only a few clients that even implement presence, so you
  1007. # probably don't want to enable this.
  1008. #
  1009. allow_outgoing_presence = {{ matrix_continuwuity_config_allow_outgoing_presence | to_json }}
  1010. # How many seconds without presence updates before you become idle.
  1011. # Defaults to 5 minutes.
  1012. #
  1013. #presence_idle_timeout_s = 300
  1014. # How many seconds without presence updates before you become offline.
  1015. # Defaults to 30 minutes.
  1016. #
  1017. #presence_offline_timeout_s = 1800
  1018. # Enable the presence idle timer for remote users.
  1019. #
  1020. # Disabling is offered as an optimization for servers participating in
  1021. # many large rooms or when resources are limited. Disabling it may cause
  1022. # incorrect presence states (i.e. stuck online) to be seen for some remote
  1023. # users.
  1024. #
  1025. #presence_timeout_remote_users = true
  1026. # Allow local read receipts.
  1027. #
  1028. # Disabling this will effectively also disable outgoing federated read
  1029. # receipts.
  1030. #
  1031. #allow_local_read_receipts = true
  1032. # Allow receiving incoming read receipts from remote servers.
  1033. #
  1034. #allow_incoming_read_receipts = true
  1035. # Allow sending read receipts to remote servers.
  1036. #
  1037. # Note that sending read receipts to remote servers in large rooms with
  1038. # lots of other homeservers may cause additional strain on the CPU and
  1039. # network.
  1040. #
  1041. #allow_outgoing_read_receipts = true
  1042. # Allow local typing updates.
  1043. #
  1044. # Disabling this will effectively also disable outgoing federated typing
  1045. # updates.
  1046. #
  1047. #allow_local_typing = true
  1048. # Allow outgoing typing updates to federation.
  1049. #
  1050. # Note that sending typing indicators to remote servers in large rooms
  1051. # with lots of other homeservers may cause additional strain on the CPU
  1052. # and network.
  1053. #
  1054. #allow_outgoing_typing = true
  1055. # Allow incoming typing updates from federation.
  1056. #
  1057. #allow_incoming_typing = true
  1058. # Maximum time federation user can indicate typing.
  1059. #
  1060. #typing_federation_timeout_s = 30
  1061. # Minimum time local client can indicate typing. This does not override a
  1062. # client's request to stop typing. It only enforces a minimum value in
  1063. # case of no stop request.
  1064. #
  1065. #typing_client_timeout_min_s = 15
  1066. # Maximum time local client can indicate typing.
  1067. #
  1068. #typing_client_timeout_max_s = 45
  1069. # Set this to true for continuwuity to compress HTTP response bodies using
  1070. # zstd. This option does nothing if continuwuity was not built with
  1071. # `zstd_compression` feature. Please be aware that enabling HTTP
  1072. # compression may weaken TLS. Most users should not need to enable this.
  1073. # See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH
  1074. # before deciding to enable this.
  1075. #
  1076. #zstd_compression = false
  1077. # Set this to true for continuwuity to compress HTTP response bodies using
  1078. # gzip. This option does nothing if continuwuity was not built with
  1079. # `gzip_compression` feature. Please be aware that enabling HTTP
  1080. # compression may weaken TLS. Most users should not need to enable this.
  1081. # See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH before
  1082. # deciding to enable this.
  1083. #
  1084. # If you are in a large amount of rooms, you may find that enabling this
  1085. # is necessary to reduce the significantly large response bodies.
  1086. #
  1087. #gzip_compression = false
  1088. # Set this to true for continuwuity to compress HTTP response bodies using
  1089. # brotli. This option does nothing if continuwuity was not built with
  1090. # `brotli_compression` feature. Please be aware that enabling HTTP
  1091. # compression may weaken TLS. Most users should not need to enable this.
  1092. # See https://breachattack.com/ and https://wikipedia.org/wiki/BREACH
  1093. # before deciding to enable this.
  1094. #
  1095. #brotli_compression = false
  1096. # Set to true to allow user type "guest" registrations. Some clients like
  1097. # Element attempt to register guest users automatically.
  1098. #
  1099. #allow_guest_registration = false
  1100. # Set to true to log guest registrations in the admin room. Note that
  1101. # these may be noisy or unnecessary if you're a public homeserver.
  1102. #
  1103. #log_guest_registrations = false
  1104. # Set to true to allow guest registrations/users to auto join any rooms
  1105. # specified in `auto_join_rooms`.
  1106. #
  1107. #allow_guests_auto_join_rooms = false
  1108. # Enable the legacy unauthenticated Matrix media repository endpoints.
  1109. # These endpoints consist of:
  1110. # - /_matrix/media/*/config
  1111. # - /_matrix/media/*/upload
  1112. # - /_matrix/media/*/preview_url
  1113. # - /_matrix/media/*/download/*
  1114. # - /_matrix/media/*/thumbnail/*
  1115. #
  1116. # The authenticated equivalent endpoints are always enabled.
  1117. #
  1118. # Defaults to true for now, but this is highly subject to change, likely
  1119. # in the next release.
  1120. #
  1121. #allow_legacy_media = true
  1122. # This item is undocumented. Please contribute documentation for it.
  1123. #
  1124. #freeze_legacy_media = true
  1125. # Check consistency of the media directory at startup:
  1126. # 1. When `media_compat_file_link` is enabled, this check will upgrade
  1127. # media when switching back and forth between Conduit and conduwuit.
  1128. # Both options must be enabled to handle this.
  1129. # 2. When media is deleted from the directory, this check will also delete
  1130. # its database entry.
  1131. #
  1132. # If none of these checks apply to your use cases, and your media
  1133. # directory is significantly large setting this to false may reduce
  1134. # startup time.
  1135. #
  1136. #media_startup_check = true
  1137. # Enable backward-compatibility with Conduit's media directory by creating
  1138. # symlinks of media.
  1139. #
  1140. # This option is only necessary if you plan on using Conduit again.
  1141. # Otherwise setting this to false reduces filesystem clutter and overhead
  1142. # for managing these symlinks in the directory. This is now disabled by
  1143. # default. You may still return to upstream Conduit but you have to run
  1144. # continuwuity at least once with this set to true and allow the
  1145. # media_startup_check to take place before shutting down to return to
  1146. # Conduit.
  1147. #
  1148. #media_compat_file_link = false
  1149. # Prune missing media from the database as part of the media startup
  1150. # checks.
  1151. #
  1152. # This means if you delete files from the media directory the
  1153. # corresponding entries will be removed from the database. This is
  1154. # disabled by default because if the media directory is accidentally moved
  1155. # or inaccessible, the metadata entries in the database will be lost with
  1156. # sadness.
  1157. #
  1158. #prune_missing_media = false
  1159. # List of forbidden server names via regex patterns that we will block
  1160. # incoming AND outgoing federation with, and block client room joins /
  1161. # remote user invites.
  1162. #
  1163. # Note that your messages can still make it to forbidden servers through
  1164. # backfilling. Events we receive from forbidden servers via backfill
  1165. # from servers we *do* federate with will be stored in the database.
  1166. #
  1167. # This check is applied on the room ID, room alias, sender server name,
  1168. # sender user's server name, inbound federation X-Matrix origin, and
  1169. # outbound federation handler.
  1170. #
  1171. # You can set this to [".*"] to block all servers by default, and then
  1172. # use `allowed_remote_server_names` to allow only specific servers.
  1173. #
  1174. # example: ["badserver\\.tld$", "badphrase", "19dollarfortnitecards"]
  1175. #
  1176. forbidden_remote_server_names = {{ matrix_continuwuity_config_forbidden_remote_server_names | to_json }}
  1177. # List of allowed server names via regex patterns that we will allow,
  1178. # regardless of if they match `forbidden_remote_server_names`.
  1179. #
  1180. # This option has no effect if `forbidden_remote_server_names` is empty.
  1181. #
  1182. # example: ["goodserver\\.tld$", "goodphrase"]
  1183. #
  1184. allowed_remote_server_names = {{ matrix_continuwuity_config_allowed_remote_server_names | to_json }}
  1185. # Vector list of regex patterns of server names that continuwuity will
  1186. # refuse to download remote media from.
  1187. #
  1188. # example: ["badserver\.tld$", "badphrase", "19dollarfortnitecards"]
  1189. #
  1190. prevent_media_downloads_from = {{ matrix_continuwuity_config_prevent_media_downloads_from | to_json }}
  1191. # List of forbidden server names via regex patterns that we will block all
  1192. # outgoing federated room directory requests for. Useful for preventing
  1193. # our users from wandering into bad servers or spaces.
  1194. #
  1195. # example: ["badserver\.tld$", "badphrase", "19dollarfortnitecards"]
  1196. #
  1197. forbidden_remote_room_directory_server_names = {{ matrix_continuwuity_config_forbidden_remote_room_directory_server_names | to_json }}
  1198. # Vector list of regex patterns of server names that continuwuity will not
  1199. # send messages to the client from.
  1200. #
  1201. # Note that there is no way for clients to receive messages once a server
  1202. # has become unignored without doing a full sync. This is a protocol
  1203. # limitation with the current sync protocols. This means this is somewhat
  1204. # of a nuclear option.
  1205. #
  1206. # example: ["reallybadserver\.tld$", "reallybadphrase",
  1207. # "69dollarfortnitecards"]
  1208. #
  1209. ignore_messages_from_server_names = {{ matrix_continuwuity_config_ignore_messages_from_server_names | to_json }}
  1210. # Send messages from users that the user has ignored to the client.
  1211. #
  1212. # There is no way for clients to receive messages sent while a user was
  1213. # ignored without doing a full sync. This is a protocol limitation with
  1214. # the current sync protocols. Disabling this option will move
  1215. # responsibility of ignoring messages to the client, which can avoid this
  1216. # limitation.
  1217. #
  1218. #send_messages_from_ignored_users_to_client = false
  1219. # Vector list of IPv4 and IPv6 CIDR ranges / subnets *in quotes* that you
  1220. # do not want continuwuity to send outbound requests to. Defaults to
  1221. # RFC1918, unroutable, loopback, multicast, and testnet addresses for
  1222. # security.
  1223. #
  1224. # Please be aware that this is *not* a guarantee. You should be using a
  1225. # firewall with zones as doing this on the application layer may have
  1226. # bypasses.
  1227. #
  1228. # Currently this does not account for proxies in use like Synapse does.
  1229. #
  1230. # To disable, set this to be an empty vector (`[]`).
  1231. #
  1232. # Defaults to:
  1233. # ["127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12",
  1234. # "192.168.0.0/16", "100.64.0.0/10", "192.0.0.0/24", "169.254.0.0/16",
  1235. # "192.88.99.0/24", "198.18.0.0/15", "192.0.2.0/24", "198.51.100.0/24",
  1236. # "203.0.113.0/24", "224.0.0.0/4", "::1/128", "fe80::/10", "fc00::/7",
  1237. # "2001:db8::/32", "ff00::/8", "fec0::/10"]
  1238. #
  1239. #ip_range_denylist =
  1240. # Optional IP address or network interface-name to bind as the source of
  1241. # URL preview requests. If not set, it will not bind to a specific
  1242. # address or interface.
  1243. #
  1244. # Interface names only supported on Linux, Android, and Fuchsia platforms;
  1245. # all other platforms can specify the IP address. To list the interfaces
  1246. # on your system, use the command `ip link show`.
  1247. #
  1248. # example: `"eth0"` or `"1.2.3.4"`
  1249. #
  1250. #url_preview_bound_interface =
  1251. # Vector list of domains allowed to send requests to for URL previews.
  1252. #
  1253. # This is a *contains* match, not an explicit match. Putting "google.com"
  1254. # will match "https://google.com" and
  1255. # "http://mymaliciousdomainexamplegoogle.com" Setting this to "*" will
  1256. # allow all URL previews. Please note that this opens up significant
  1257. # attack surface to your server, you are expected to be aware of the risks
  1258. # by doing so.
  1259. #
  1260. url_preview_domain_contains_allowlist = {{ matrix_continuwuity_config_url_preview_domain_contains_allowlist | to_json }}
  1261. # Vector list of explicit domains allowed to send requests to for URL
  1262. # previews.
  1263. #
  1264. # This is an *explicit* match, not a contains match. Putting "google.com"
  1265. # will match "https://google.com", "http://google.com", but not
  1266. # "https://mymaliciousdomainexamplegoogle.com". Setting this to "*" will
  1267. # allow all URL previews. Please note that this opens up significant
  1268. # attack surface to your server, you are expected to be aware of the risks
  1269. # by doing so.
  1270. #
  1271. url_preview_domain_explicit_allowlist = {{ matrix_continuwuity_config_url_preview_domain_explicit_allowlist | to_json }}
  1272. # Vector list of explicit domains not allowed to send requests to for URL
  1273. # previews.
  1274. #
  1275. # This is an *explicit* match, not a contains match. Putting "google.com"
  1276. # will match "https://google.com", "http://google.com", but not
  1277. # "https://mymaliciousdomainexamplegoogle.com". The denylist is checked
  1278. # first before allowlist. Setting this to "*" will not do anything.
  1279. #
  1280. #url_preview_domain_explicit_denylist = []
  1281. # Vector list of URLs allowed to send requests to for URL previews.
  1282. #
  1283. # Note that this is a *contains* match, not an explicit match. Putting
  1284. # "google.com" will match "https://google.com/",
  1285. # "https://google.com/url?q=https://mymaliciousdomainexample.com", and
  1286. # "https://mymaliciousdomainexample.com/hi/google.com" Setting this to "*"
  1287. # will allow all URL previews. Please note that this opens up significant
  1288. # attack surface to your server, you are expected to be aware of the risks
  1289. # by doing so.
  1290. #
  1291. #url_preview_url_contains_allowlist = []
  1292. # Maximum amount of bytes allowed in a URL preview body size when
  1293. # spidering. Defaults to 256KB in bytes.
  1294. #
  1295. #url_preview_max_spider_size = 256000
  1296. # Total request timeout for URL previews (seconds). This includes
  1297. # connection, request, and response body reading time.
  1298. #
  1299. #url_preview_timeout = 120
  1300. # Option to decide whether you would like to run the domain allowlist
  1301. # checks (contains and explicit) on the root domain or not. Does not apply
  1302. # to URL contains allowlist. Defaults to false.
  1303. #
  1304. # Example usecase: If this is enabled and you have "wikipedia.org" allowed
  1305. # in the explicit and/or contains domain allowlist, it will allow all
  1306. # subdomains under "wikipedia.org" such as "en.m.wikipedia.org" as the
  1307. # root domain is checked and matched. Useful if the domain contains
  1308. # allowlist is still too broad for you but you still want to allow all the
  1309. # subdomains under a root domain.
  1310. #
  1311. url_preview_check_root_domain = {{ matrix_continuwuity_config_url_preview_check_root_domain | to_json }}
  1312. # User agent that is used specifically when fetching url previews.
  1313. #
  1314. #url_preview_user_agent = "continuwuity/<version> (bot; +https://continuwuity.org)"
  1315. # Determines whether audio and video files will be downloaded for URL
  1316. # previews.
  1317. #
  1318. #url_preview_allow_audio_video = false
  1319. # List of forbidden room aliases and room IDs as strings of regex
  1320. # patterns.
  1321. #
  1322. # Regex can be used or explicit contains matches can be done by just
  1323. # specifying the words (see example).
  1324. #
  1325. # This is checked upon room alias creation, custom room ID creation if
  1326. # used, and startup as warnings if any room aliases in your database have
  1327. # a forbidden room alias/ID.
  1328. #
  1329. # example: ["19dollarfortnitecards", "b[4a]droom", "badphrase"]
  1330. #
  1331. #forbidden_alias_names = []
  1332. # List of forbidden username patterns/strings.
  1333. #
  1334. # Regex can be used or explicit contains matches can be done by just
  1335. # specifying the words (see example).
  1336. #
  1337. # This is checked upon username availability check, registration, and
  1338. # startup as warnings if any local users in your database have a forbidden
  1339. # username.
  1340. #
  1341. # example: ["administrator", "b[a4]dusernam[3e]", "badphrase"]
  1342. #
  1343. #forbidden_usernames = []
  1344. # Retry failed and incomplete messages to remote servers immediately upon
  1345. # startup. This is called bursting. If this is disabled, said messages may
  1346. # not be delivered until more messages are queued for that server. Do not
  1347. # change this option unless server resources are extremely limited or the
  1348. # scale of the server's deployment is huge. Do not disable this unless you
  1349. # know what you are doing.
  1350. #
  1351. #startup_netburst = true
  1352. # Messages are dropped and not reattempted. The `startup_netburst` option
  1353. # must be enabled for this value to have any effect. Do not change this
  1354. # value unless you know what you are doing. Set this value to -1 to
  1355. # reattempt every message without trimming the queues; this may consume
  1356. # significant disk. Set this value to 0 to drop all messages without any
  1357. # attempt at redelivery.
  1358. #
  1359. #startup_netburst_keep = 50
  1360. # Block non-admin local users from sending room invites (local and
  1361. # remote), and block non-admin users from receiving remote room invites.
  1362. #
  1363. # Admins are always allowed to send and receive all room invites.
  1364. #
  1365. #block_non_admin_invites = false
  1366. # Enable or disable making requests to MSC4284 Policy Servers.
  1367. # It is recommended you keep this enabled unless you experience frequent
  1368. # connectivity issues, such as in a restricted networking environment.
  1369. #
  1370. #enable_msc4284_policy_servers = true
  1371. # Enable running locally generated events through configured MSC4284
  1372. # policy servers. You may wish to disable this if your server is
  1373. # single-user for a slight speed benefit in some rooms, but otherwise
  1374. # should leave it enabled.
  1375. #
  1376. #policy_server_check_own_events = true
  1377. # Allow admins to enter commands in rooms other than "#admins" (admin
  1378. # room) by prefixing your message with "\!admin" or "\\!admin" followed up
  1379. # a normal continuwuity admin command. The reply will be publicly visible
  1380. # to the room, originating from the sender.
  1381. #
  1382. # example: \\!admin debug ping continuwuity.org
  1383. #
  1384. #admin_escape_commands = true
  1385. # Automatically activate the continuwuity admin room console / CLI on
  1386. # startup. This option can also be enabled with `--console` continuwuity
  1387. # argument.
  1388. #
  1389. #admin_console_automatic = false
  1390. # List of admin commands to execute on startup.
  1391. #
  1392. # This option can also be configured with the `--execute` continuwuity
  1393. # argument and can take standard shell commands and environment variables
  1394. #
  1395. # For example: `./continuwuity --execute "server admin-notice continuwuity
  1396. # has started up at $(date)"`
  1397. #
  1398. # example: admin_execute = ["debug ping continuwuity.org", "debug echo
  1399. # hi"]`
  1400. #
  1401. #admin_execute = []
  1402. # Ignore errors in startup commands.
  1403. #
  1404. # If false, continuwuity will error and fail to start if an admin execute
  1405. # command (`--execute` / `admin_execute`) fails.
  1406. #
  1407. #admin_execute_errors_ignore = false
  1408. # List of admin commands to execute on SIGUSR2.
  1409. #
  1410. # Similar to admin_execute, but these commands are executed when the
  1411. # server receives SIGUSR2 on supporting platforms.
  1412. #
  1413. #admin_signal_execute = []
  1414. # Controls the max log level for admin command log captures (logs
  1415. # generated from running admin commands). Defaults to "info" on release
  1416. # builds, else "debug" on debug builds.
  1417. #
  1418. #admin_log_capture = "info"
  1419. # The default room tag to apply on the admin room.
  1420. #
  1421. # On some clients like Element, the room tag "m.server_notice" is a
  1422. # special pinned room at the very bottom of your room list. The
  1423. # continuwuity admin room can be pinned here so you always have an
  1424. # easy-to-access shortcut dedicated to your admin room.
  1425. #
  1426. #admin_room_tag = "m.server_notice"
  1427. # A list of Matrix IDs that are qualified as server admins.
  1428. #
  1429. # Any Matrix IDs within this list are regarded as an admin
  1430. # regardless of whether they are in the admin room or not
  1431. #
  1432. #admins_list = []
  1433. # Defines whether those within the admin room are added to the
  1434. # admins_list.
  1435. #
  1436. #admins_from_room = true
  1437. # Sentry.io crash/panic reporting, performance monitoring/metrics, etc.
  1438. # This is NOT enabled by default.
  1439. #
  1440. #sentry = false
  1441. # Sentry reporting URL, if a custom one is desired.
  1442. #
  1443. #sentry_endpoint = ""
  1444. # Report your continuwuity server_name in Sentry.io crash reports and
  1445. # metrics.
  1446. #
  1447. #sentry_send_server_name = false
  1448. # Performance monitoring/tracing sample rate for Sentry.io.
  1449. #
  1450. # Note that too high values may impact performance, and can be disabled by
  1451. # setting it to 0.0 (0%) This value is read as a percentage to Sentry,
  1452. # represented as a decimal. Defaults to 15% of traces (0.15)
  1453. #
  1454. #sentry_traces_sample_rate = 0.15
  1455. # Whether to attach a stacktrace to Sentry reports.
  1456. #
  1457. #sentry_attach_stacktrace = false
  1458. # Send panics to Sentry. This is true by default, but Sentry has to be
  1459. # enabled. The global `sentry` config option must be enabled to send any
  1460. # data.
  1461. #
  1462. #sentry_send_panic = true
  1463. # Send errors to sentry. This is true by default, but sentry has to be
  1464. # enabled. This option is only effective in release-mode; forced to false
  1465. # in debug-mode.
  1466. #
  1467. #sentry_send_error = true
  1468. # Controls the tracing log level for Sentry to send things like
  1469. # breadcrumbs and transactions
  1470. #
  1471. #sentry_filter = "info"
  1472. # Enable the tokio-console. This option is only relevant to developers.
  1473. #
  1474. # For more information, see:
  1475. # https://continuwuity.org/development.html#debugging-with-tokio-console
  1476. #
  1477. #tokio_console = false
  1478. # This item is undocumented. Please contribute documentation for it.
  1479. #
  1480. #test = false
  1481. # Controls whether admin room notices like account registrations, password
  1482. # changes, account deactivations, room directory publications, etc will be
  1483. # sent to the admin room. Update notices and normal admin command
  1484. # responses will still be sent.
  1485. #
  1486. #admin_room_notices = true
  1487. # Enable database pool affinity support. On supporting systems, block
  1488. # device queue topologies are detected and the request pool is optimized
  1489. # for the hardware; db_pool_workers is determined automatically.
  1490. #
  1491. #db_pool_affinity = true
  1492. # Sets the number of worker threads in the frontend-pool of the database.
  1493. # This number should reflect the I/O capabilities of the system,
  1494. # such as the queue-depth or the number of simultaneous requests in
  1495. # flight. Defaults to 32 or four times the number of CPU cores, whichever
  1496. # is greater.
  1497. #
  1498. # Note: This value is only used if db_pool_affinity is disabled or not
  1499. # detected on the system, otherwise it is determined automatically.
  1500. #
  1501. #db_pool_workers = 32
  1502. # When db_pool_affinity is enabled and detected, the size of any worker
  1503. # group will not exceed the determined value. This is necessary when
  1504. # thread-pooling approach does not scale to the full capabilities of
  1505. # high-end hardware; using detected values without limitation could
  1506. # degrade performance.
  1507. #
  1508. # The value is multiplied by the number of cores which share a device
  1509. # queue, since group workers can be scheduled on any of those cores.
  1510. #
  1511. #db_pool_workers_limit = 64
  1512. # Determines the size of the queues feeding the database's frontend-pool.
  1513. # The size of the queue is determined by multiplying this value with the
  1514. # number of pool workers. When this queue is full, tokio tasks conducting
  1515. # requests will yield until space is available; this is good for
  1516. # flow-control by avoiding buffer-bloat, but can inhibit throughput if
  1517. # too low.
  1518. #
  1519. #db_pool_queue_mult = 4
  1520. # Sets the initial value for the concurrency of streams. This value simply
  1521. # allows overriding the default in the code. The default is 32, which is
  1522. # the same as the default in the code. Note this value is itself
  1523. # overridden by the computed stream_width_scale, unless that is disabled;
  1524. # this value can serve as a fixed-width instead.
  1525. #
  1526. #stream_width_default = 32
  1527. # Scales the stream width starting from a base value detected for the
  1528. # specific system. The base value is the database pool worker count
  1529. # determined from the hardware queue size (e.g. 32 for SSD or 64 or 128+
  1530. # for NVMe). This float allows scaling the width up or down by multiplying
  1531. # it (e.g. 1.5, 2.0, etc). The maximum result can be the size of the pool
  1532. # queue (see: db_pool_queue_mult) as any larger value will stall the tokio
  1533. # task. The value can also be scaled down (e.g. 0.5) to improve
  1534. # responsiveness for many users at the cost of throughput for each.
  1535. #
  1536. # Setting this value to 0.0 causes the stream width to be fixed at the
  1537. # value of stream_width_default. The default scale is 1.0 to match the
  1538. # capabilities detected for the system.
  1539. #
  1540. #stream_width_scale = 1.0
  1541. # Sets the initial amplification factor. This controls batch sizes of
  1542. # requests made by each pool worker, multiplying the throughput of each
  1543. # stream. This value is somewhat abstract from specific hardware
  1544. # characteristics and can be significantly larger than any thread count or
  1545. # queue size. This is because each database query may require several
  1546. # index lookups, thus many database queries in a batch may make progress
  1547. # independently while also sharing index and data blocks which may or may
  1548. # not be cached. It is worthwhile to submit huge batches to reduce
  1549. # complexity. The maximum value is 32768, though sufficient hardware is
  1550. # still advised for that.
  1551. #
  1552. #stream_amplification = 1024
  1553. # Number of sender task workers; determines sender parallelism. Default is
  1554. # '0' which means the value is determined internally, likely matching the
  1555. # number of tokio worker-threads or number of cores, etc. Override by
  1556. # setting a non-zero value.
  1557. #
  1558. #sender_workers = 0
  1559. # Enables listener sockets; can be set to false to disable listening. This
  1560. # option is intended for developer/diagnostic purposes only.
  1561. #
  1562. #listening = true
  1563. # Enables configuration reload when the server receives SIGUSR1 on
  1564. # supporting platforms.
  1565. #
  1566. #config_reload_signal = true
  1567. # Allow search engines and crawlers to index Continuwuity's built-in
  1568. # webpages served under the `/_continuwuity/` prefix.
  1569. #
  1570. #allow_web_indexing = false
  1571. [global.tls]
  1572. # Path to a valid TLS certificate file.
  1573. #
  1574. # example: "/path/to/my/certificate.crt"
  1575. #
  1576. #certs =
  1577. # Path to a valid TLS certificate private key.
  1578. #
  1579. # example: "/path/to/my/certificate.key"
  1580. #
  1581. #key =
  1582. # Whether to listen and allow for HTTP and HTTPS connections (insecure!)
  1583. #
  1584. #dual_protocol = false
  1585. [global.well_known]
  1586. # The server URL that the client well-known file will serve. This should
  1587. # not contain a port, and should just be a valid HTTPS URL.
  1588. #
  1589. # example: "https://matrix.example.com"
  1590. #
  1591. #client =
  1592. # The server base domain of the URL with a specific port that the server
  1593. # well-known file will serve. This should contain a port at the end, and
  1594. # should not be a URL.
  1595. #
  1596. # example: "matrix.example.com:443"
  1597. #
  1598. #server =
  1599. # URL to a support page for the server, which will be served as part of
  1600. # the MSC1929 server support endpoint at /.well-known/matrix/support.
  1601. # Will be included alongside any contact information
  1602. #
  1603. #support_page =
  1604. # Role string for server support contacts, to be served as part of the
  1605. # MSC1929 server support endpoint at /.well-known/matrix/support.
  1606. #
  1607. #support_role = "m.role.admin"
  1608. # Email address for server support contacts, to be served as part of the
  1609. # MSC1929 server support endpoint.
  1610. # This will be used along with support_mxid if specified.
  1611. #
  1612. #support_email =
  1613. # Matrix ID for server support contacts, to be served as part of the
  1614. # MSC1929 server support endpoint.
  1615. # This will be used along with support_email if specified.
  1616. #
  1617. # If no email or mxid is specified, all of the server's admins will be
  1618. # listed.
  1619. #
  1620. #support_mxid =
  1621. [global.blurhashing]
  1622. # blurhashing x component, 4 is recommended by https://blurha.sh/
  1623. #
  1624. #components_x = 4
  1625. # blurhashing y component, 3 is recommended by https://blurha.sh/
  1626. #
  1627. #components_y = 3
  1628. # Max raw size that the server will blurhash, this is the size of the
  1629. # image after converting it to raw data, it should be higher than the
  1630. # upload limit but not too high. The higher it is the higher the
  1631. # potential load will be for clients requesting blurhashes. The default
  1632. # is 33.55MB. Setting it to 0 disables blurhashing.
  1633. #
  1634. #blurhash_max_raw_size = 33554432
  1635. [global.matrix_rtc]
  1636. # A list of MatrixRTC foci (transports) which will be served via the
  1637. # MSC4143 RTC transports endpoint at
  1638. # `/_matrix/client/v1/rtc/transports`. If you're setting up livekit,
  1639. # you'd want something like:
  1640. # ```toml
  1641. # [global.matrix_rtc]
  1642. # foci = [
  1643. # { type = "livekit", livekit_service_url = "https://livekit.example.com" },
  1644. # ]
  1645. # ```
  1646. #
  1647. # To disable, set this to an empty list (`[]`).
  1648. #
  1649. foci = [
  1650. {% for focus in matrix_continuwuity_config_rtc_foci %}
  1651. { {% for key, value in focus.items() %}{{ key }} = {{ value | to_json }}{% if not loop.last %}, {% endif %}{% endfor %} }{% if not loop.last %}, {% endif %}
  1652. {% endfor %}
  1653. ]
  1654. [global.ldap]
  1655. # Whether to enable LDAP login.
  1656. #
  1657. # example: "true"
  1658. #
  1659. #enable = false
  1660. # Whether to force LDAP authentication or authorize classical password
  1661. # login.
  1662. #
  1663. # example: "true"
  1664. #
  1665. #ldap_only = false
  1666. # URI of the LDAP server.
  1667. #
  1668. # example: "ldap://ldap.example.com:389"
  1669. #
  1670. #uri = ""
  1671. # Root of the searches.
  1672. #
  1673. # example: "ou=users,dc=example,dc=org"
  1674. #
  1675. #base_dn = ""
  1676. # Bind DN if anonymous search is not enabled.
  1677. #
  1678. # You can use the variable `{username}` that will be replaced by the
  1679. # entered username. In such case, the password used to bind will be the
  1680. # one provided for the login and not the one given by
  1681. # `bind_password_file`. Beware: automatically granting admin rights will
  1682. # not work if you use this direct bind instead of a LDAP search.
  1683. #
  1684. # example: "cn=ldap-reader,dc=example,dc=org" or
  1685. # "cn={username},ou=users,dc=example,dc=org"
  1686. #
  1687. #bind_dn = ""
  1688. # Path to a file on the system that contains the password for the
  1689. # `bind_dn`.
  1690. #
  1691. # The server must be able to access the file, and it must not be empty.
  1692. #
  1693. #bind_password_file = ""
  1694. # Search filter to limit user searches.
  1695. #
  1696. # You can use the variable `{username}` that will be replaced by the
  1697. # entered username for more complex filters.
  1698. #
  1699. # example: "(&(objectClass=person)(memberOf=matrix))"
  1700. #
  1701. #filter = "(objectClass=*)"
  1702. # Attribute to use to uniquely identify the user.
  1703. #
  1704. # example: "uid" or "cn"
  1705. #
  1706. #uid_attribute = "uid"
  1707. # Attribute containing the display name of the user.
  1708. #
  1709. # example: "givenName" or "sn"
  1710. #
  1711. #name_attribute = "givenName"
  1712. # Root of the searches for admin users.
  1713. #
  1714. # Defaults to `base_dn` if empty.
  1715. #
  1716. # example: "ou=admins,dc=example,dc=org"
  1717. #
  1718. #admin_base_dn = ""
  1719. # The LDAP search filter to find administrative users for continuwuity.
  1720. #
  1721. # If left blank, administrative state must be configured manually for each
  1722. # user.
  1723. #
  1724. # You can use the variable `{username}` that will be replaced by the
  1725. # entered username for more complex filters.
  1726. #
  1727. # example: "(objectClass=conduwuitAdmin)" or "(uid={username})"
  1728. #
  1729. #admin_filter = ""
  1730. #[global.antispam]
  1731. #[global.antispam.meowlnir]
  1732. # The base URL on which to contact Meowlnir (before /_meowlnir/antispam).
  1733. #
  1734. # Example: "http://127.0.0.1:29339"
  1735. #
  1736. #base_url =
  1737. # The authentication secret defined in antispam->secret. Required for
  1738. # continuwuity to talk to Meowlnir.
  1739. #
  1740. #secret =
  1741. # The management room for which to send requests
  1742. #
  1743. #management_room =
  1744. # If enabled run all federated join attempts (both federated and local)
  1745. # through the Meowlnir anti-spam checks.
  1746. #
  1747. # By default, only join attempts for rooms with the `fi.mau.spam_checker`
  1748. # restricted join rule are checked.
  1749. #
  1750. #check_all_joins = false
  1751. #[global.antispam.draupnir]
  1752. # The base URL on which to contact Draupnir (before /api/).
  1753. #
  1754. # Example: "http://127.0.0.1:29339"
  1755. #
  1756. #base_url =
  1757. # The authentication secret defined in
  1758. # web->synapseHTTPAntispam->authorization
  1759. #
  1760. #secret =