@@ -18,13 +18,14 @@ func main() {
1818 flagAdminToken := flag .String ("admintoken" , "" , "Admin token to allow certain endpoints" )
1919 flagCacheTTL := flag .Uint ("cachettl" , 180 , "Cache TTL in minutes" )
2020 flagMaintenanceTTL := flag .Uint ("maintenancettl" , 5 , "Allows to limit how frequently scraper can check for maintenance end in minutes" )
21+ flagMaxTasksPerClient := flag .Uint ("maxtasksperclient" , 5 , "Maximum number of scraping tasks per client" )
2122 flagMongo := flag .String ("mongo" , "" , "MongoDB connection string for loggig" )
2223 flagPort := flag .Uint ("port" , 8001 , "Port to catch requests on" )
2324 flagProxy := flag .String ("proxy" , "" , "Open proxy address to make requests to BDO servers" )
25+ flagProxyReloadWebhook := flag .String ("proxyreloadwebhook" , "" , "Webhook address to request proxy reload" )
2426 flagRateLimit := flag .Uint64 ("ratelimit" , 512 , "Maximum number of requests per minute per IP" )
25- flagVerbose := flag .Bool ("verbose" , false , "Print out additional logs into stdout" )
2627 flagTaskRetries := flag .Uint ("taskretries" , 3 , "Number of retries for a scraping task" )
27- flagMaxTasksPerClient := flag .Uint ( "maxtasksperclient " , 5 , "Maximum number of scraping tasks per client " )
28+ flagVerbose := flag .Bool ( "verbose " , false , "Print out additional logs into stdout " )
2829 flag .Parse ()
2930
3031 // Read port from flags and env
@@ -52,6 +53,7 @@ func main() {
5253 viper .Set ("maintenancettl" , time .Duration (* flagMaintenanceTTL )* time .Minute )
5354 viper .Set ("maxtasksperclient" , int (* flagMaxTasksPerClient ))
5455 viper .Set ("mongo" , * flagMongo )
56+ viper .Set ("proxyreloadwebhook" , * flagProxyReloadWebhook )
5557 viper .Set ("ratelimit" , int64 (* flagRateLimit ))
5658 viper .Set ("taskretries" , int (* flagTaskRetries ))
5759 viper .Set ("verbose" , * flagVerbose )
0 commit comments