fix: default config options

next
Timo Kösters 2021-02-07 13:20:00 +01:00
parent 6924dfc8ea
commit ea1e4625d1
No known key found for this signature in database
GPG Key ID: 24DA7517711A2BA4
2 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@ port = 6167
max_request_size = 20_000_000 # in bytes
# Disable registration. No new users will be able to register on this server
#registration_disabled = false
#allow_registration = true
# Disable encryption, so no new encrypted rooms can be created
# Note: existing rooms will continue to work
#encryption_disabled = false
#federation_disabled = false
#allow_encryption = true
#allow_federation = false
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 4 # How many requests Conduit sends to other servers at the same time

View File

@ -32,7 +32,7 @@ pub struct Config {
max_request_size: u32,
#[serde(default = "default_max_concurrent_requests")]
max_concurrent_requests: u16,
#[serde(default)]
#[serde(default = "true_fn")]
allow_registration: bool,
#[serde(default = "true_fn")]
allow_encryption: bool,