Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

2149 строки
75 KiB

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