varcableSocket=flag.String("cableSocket","","Optional: Unix domain socket to dial cableBackend at")
varpprofListenAddr=flag.String("pprofListenAddr","","pprof listening address, e.g. 'localhost:6060'")
vardocumentRoot=flag.String("documentRoot","public","Path to static files content")
varproxyHeadersTimeout=flag.Duration("proxyHeadersTimeout",5*time.Minute,"How long to wait for response headers when proxying the request")
vardevelopmentMode=flag.Bool("developmentMode",false,"Allow the assets to be served from Rails app")
varsecretPath=flag.String("secretPath","./.gitlab_workhorse_secret","File with secret key to authenticate with authBackend")
varapiLimit=flag.Uint("apiLimit",0,"Number of API requests allowed at single time")
varapiQueueLimit=flag.Uint("apiQueueLimit",0,"Number of API requests allowed to be queued")
varapiQueueTimeout=flag.Duration("apiQueueDuration",queueing.DefaultTimeout,"Maximum queueing duration of requests")
varapiCiLongPollingDuration=flag.Duration("apiCiLongPollingDuration",50,"Long polling duration for job requesting for runners (default 50s - enabled)")
varpropagateCorrelationID=flag.Bool("propagateCorrelationID",false,"Reuse existing Correlation-ID from the incoming request header `X-Request-ID` if present")
varprometheusListenAddr=flag.String("prometheusListenAddr","","Prometheus listening address, e.g. 'localhost:9229'")
fset.StringVar(&cfg.CableSocket,"cableSocket","","Optional: Unix domain socket to dial cableBackend at")
fset.StringVar(&cfg.DocumentRoot,"documentRoot","public","Path to static files content")
fset.DurationVar(&cfg.ProxyHeadersTimeout,"proxyHeadersTimeout",5*time.Minute,"How long to wait for response headers when proxying the request")
fset.BoolVar(&cfg.DevelopmentMode,"developmentMode",false,"Allow the assets to be served from Rails app")
fset.UintVar(&cfg.APILimit,"apiLimit",0,"Number of API requests allowed at single time")
fset.UintVar(&cfg.APIQueueLimit,"apiQueueLimit",0,"Number of API requests allowed to be queued")
fset.DurationVar(&cfg.APIQueueTimeout,"apiQueueDuration",queueing.DefaultTimeout,"Maximum queueing duration of requests")
fset.DurationVar(&cfg.APICILongPollingDuration,"apiCiLongPollingDuration",50,"Long polling duration for job requesting for runners (default 50s - enabled)")
fset.BoolVar(&cfg.PropagateCorrelationID,"propagateCorrelationID",false,"Reuse existing Correlation-ID from the incoming request header `X-Request-ID` if present")