| 
				
			 | 
			
			
				@@ -426,11 +426,12 @@ function peertube_create_config { 
			 | 
		
	
		
			
			| 
				426
			 | 
			
				426
			 | 
			
			
				     echo '' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				427
			 | 
			
				427
			 | 
			
			
				     echo '# Correspond to your reverse proxy "listen" configuration' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				428
			 | 
			
				428
			 | 
			
			
				     echo 'webserver:' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				429
			 | 
			
				
			 | 
			
			
				-    echo '  https: true' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				430
			 | 
			
				429
			 | 
			
			
				     if [[ $ONION_ONLY == 'no' ]]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				430
			 | 
			
			
				+        echo '  https: true' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				431
			 | 
			
				431
			 | 
			
			
				         echo "  hostname: '$PEERTUBE_DOMAIN_NAME'" >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				432
			 | 
			
				432
			 | 
			
			
				         echo '  port: 443' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				433
			 | 
			
				433
			 | 
			
			
				     else 
			 | 
		
	
		
			
			| 
				
			 | 
			
				434
			 | 
			
			
				+        echo '  https: false' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				434
			 | 
			
				435
			 | 
			
			
				         echo "  hostname: '$PEERTUBE_ONION_HOSTNAME'" >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				435
			 | 
			
				436
			 | 
			
			
				         echo '  port: 80' >> $peertube_config_file 
			 | 
		
	
		
			
			| 
				436
			 | 
			
				437
			 | 
			
			
				     fi 
			 |