improvement: better deploy guide
This commit is contained in:
		
							parent
							
								
									d7e56dbfa0
								
							
						
					
					
						commit
						b4818716b8
					
				
					 7 changed files with 131 additions and 71 deletions
				
			
		| 
						 | 
				
			
			@ -86,7 +86,7 @@ pub async fn register_route(
 | 
			
		|||
    db: State<'_, Database>,
 | 
			
		||||
    body: Ruma<register::Request<'_>>,
 | 
			
		||||
) -> ConduitResult<register::Response> {
 | 
			
		||||
    if db.globals.registration_disabled() {
 | 
			
		||||
    if !db.globals.allow_registration() {
 | 
			
		||||
        return Err(Error::BadRequest(
 | 
			
		||||
            ErrorKind::Forbidden,
 | 
			
		||||
            "Registration has been disabled.",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -240,7 +240,7 @@ pub async fn create_room_route(
 | 
			
		|||
        .map_err(|_| Error::BadRequest(ErrorKind::InvalidParam, "Invalid initial state event."))?;
 | 
			
		||||
 | 
			
		||||
        // Silently skip encryption events if they are not allowed
 | 
			
		||||
        if pdu_builder.event_type == EventType::RoomEncryption && db.globals.encryption_disabled() {
 | 
			
		||||
        if pdu_builder.event_type == EventType::RoomEncryption && !db.globals.allow_encryption() {
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue