| 
				
			 | 
			
			
				@@ -230,6 +230,8 @@ function matrix_configure_homeserver_yaml { 
			 | 
		
	
		
			
			| 
				230
			 | 
			
				230
			 | 
			
			
				     sed -i "s|media_store_path:.*|media_store_path: \"${MATRIX_DATA_DIR}/media_store\"|g" "${filepath}" 
			 | 
		
	
		
			
			| 
				231
			 | 
			
				231
			 | 
			
			
				     sed -i "s|pid_file:.*|pid_file: \"${MATRIX_DATA_DIR}/homeserver.pid\"|g" "${filepath}" 
			 | 
		
	
		
			
			| 
				232
			 | 
			
				232
			 | 
			
			
				     sed -i "s|log_file:.*|log_file: \"/dev/null\"|g" "${filepath}" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				233
			 | 
			
			
				+    sed -i '0,/bind_address:.*/s//bind_address: 127.0.0.1/' "${filepath}" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				234
			 | 
			
			
				+    sed -i '0,/x_forwarded:.*/s//x_forwarded: true/' "${filepath}" 
			 | 
		
	
		
			
			| 
				233
			 | 
			
				235
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				234
			 | 
			
				236
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				235
			 | 
			
				237
			 | 
			
			
				 function matrix_configure_identityserver { 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -625,6 +627,7 @@ function install_matrix { 
			 | 
		
	
		
			
			| 
				625
			 | 
			
				627
			 | 
			
			
				     pip install --upgrade pip 
			 | 
		
	
		
			
			| 
				626
			 | 
			
				628
			 | 
			
			
				     pip install --upgrade python-ldap 
			 | 
		
	
		
			
			| 
				627
			 | 
			
				629
			 | 
			
			
				     pip install --upgrade lxml 
			 | 
		
	
		
			
			| 
				
			 | 
			
				630
			 | 
			
			
				+    pip install --upgrade --force "pynacl==0.3.0" 
			 | 
		
	
		
			
			| 
				628
			 | 
			
				631
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				629
			 | 
			
				632
			 | 
			
			
				     function_check install_home_server 
			 | 
		
	
		
			
			| 
				630
			 | 
			
				633
			 | 
			
			
				     install_home_server 
			 |