added config entries
This commit is contained in:
		
							parent
							
								
									f3bb30007b
								
							
						
					
					
						commit
						31f110fed4
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -36,6 +36,9 @@ func setDefaults() {
 | 
				
			||||||
	viper.SetDefault("web.key", "/etc/ssl/key/ssl-cert-snakeoil.key")
 | 
						viper.SetDefault("web.key", "/etc/ssl/key/ssl-cert-snakeoil.key")
 | 
				
			||||||
	viper.SetDefault("web.loghttp", true)
 | 
						viper.SetDefault("web.loghttp", true)
 | 
				
			||||||
	viper.SetDefault("web.maxfilesizemb", 100)
 | 
						viper.SetDefault("web.maxfilesizemb", 100)
 | 
				
			||||||
 | 
						viper.SetDefault("web.download.usermax", 5)
 | 
				
			||||||
 | 
						viper.SetDefault("web.download.anonmax", 1)
 | 
				
			||||||
 | 
						viper.SetDefault("web.download.disable", false)
 | 
				
			||||||
	// Database
 | 
						// Database
 | 
				
			||||||
	viper.SetDefault("db.host", "localhost")
 | 
						viper.SetDefault("db.host", "localhost")
 | 
				
			||||||
	viper.SetDefault("db.port", 5432)
 | 
						viper.SetDefault("db.port", 5432)
 | 
				
			||||||
| 
						 | 
					@ -45,6 +48,7 @@ func setDefaults() {
 | 
				
			||||||
	viper.SetDefault("db.debug", false)
 | 
						viper.SetDefault("db.debug", false)
 | 
				
			||||||
	// Others
 | 
						// Others
 | 
				
			||||||
	viper.SetDefault("processing.oleurl", "http://localhost:5000")
 | 
						viper.SetDefault("processing.oleurl", "http://localhost:5000")
 | 
				
			||||||
 | 
						viper.SetDefault("processing.capaurl", "http://localhost:5001")
 | 
				
			||||||
	viper.SetDefault("processing.maxmimesize", "100MB")
 | 
						viper.SetDefault("processing.maxmimesize", "100MB")
 | 
				
			||||||
	viper.SetDefault("processing.yararules", "./storage/rules")
 | 
						viper.SetDefault("processing.yararules", "./storage/rules")
 | 
				
			||||||
	viper.SetDefault("processing.yaracompiled", "./storage/output.yarc")
 | 
						viper.SetDefault("processing.yaracompiled", "./storage/output.yarc")
 | 
				
			||||||
| 
						 | 
					@ -53,7 +57,7 @@ func setDefaults() {
 | 
				
			||||||
	// UI Interface info
 | 
						// UI Interface info
 | 
				
			||||||
	viper.SetDefault("ui.name", "Scanfile")
 | 
						viper.SetDefault("ui.name", "Scanfile")
 | 
				
			||||||
	viper.SetDefault("ui.byurl", "https://www.jmbit.de")
 | 
						viper.SetDefault("ui.byurl", "https://www.jmbit.de")
 | 
				
			||||||
	viper.SetDefault("ui.byurl", "Johannes Bülow")
 | 
						viper.SetDefault("ui.byname", "Johannes Bülow")
 | 
				
			||||||
	viper.SetDefault("ui.source", "https://git.jmbit.de/jmb/scanfile")
 | 
						viper.SetDefault("ui.source", "https://git.jmbit.de/jmb/scanfile")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue