fix: default config options
This commit is contained in:
		
							parent
							
								
									6924dfc8ea
								
							
						
					
					
						commit
						ea1e4625d1
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
|  | @ -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, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue