| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -22,9 +22,11 @@ var stats *Stats | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					var usingExternalStorage = false | 
					 | 
					 | 
					 | 
					var usingExternalStorage = false | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					func main() { | 
					 | 
					 | 
					 | 
					func main() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						// logrus.SetReportCaller(true)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						log.StandardLogger().Printf("Owncast v%s/%s (%s)", BuildVersion, BuildType, GitCommit) | 
					 | 
					 | 
					 | 
						log.StandardLogger().Printf("Owncast v%s/%s (%s)", BuildVersion, BuildType, GitCommit) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						checkConfig(configuration) | 
					 | 
					 | 
					 | 
						checkConfig(configuration) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						resetDirectories(configuration) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						stats = getSavedStats() | 
					 | 
					 | 
					 | 
						stats = getSavedStats() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						stats.Setup() | 
					 | 
					 | 
					 | 
						stats.Setup() | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -42,15 +44,13 @@ func main() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage) | 
					 | 
					 | 
					 | 
							go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						createInitialOfflineState() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						go startRTMPService() | 
					 | 
					 | 
					 | 
						go startRTMPService() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						resetDirectories(configuration) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						startWebServer() | 
					 | 
					 | 
					 | 
						startWebServer() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					func startWebServer() { | 
					 | 
					 | 
					 | 
					func startWebServer() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						// log.SetFlags(log.Lshortfile)
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						// websocket server
 | 
					 | 
					 | 
					 | 
						// websocket server
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						server = NewServer("/entry") | 
					 | 
					 | 
					 | 
						server = NewServer("/entry") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						go server.Listen() | 
					 | 
					 | 
					 | 
						go server.Listen() | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |