@@ -14,7 +14,6 @@ In this file we start the web server and hand off to the upstream type.
packagemain
import(
"./internal/badgateway"
"./internal/upstream"
"flag"
"fmt"
...
...
@@ -24,6 +23,7 @@ import (
_"net/http/pprof"
"os"
"syscall"
"time"
)
// Current version of GitLab Workhorse
...
...
@@ -37,7 +37,7 @@ var authBackend = URLFlag("authBackend", upstream.DefaultBackend, "Authenticatio
varauthSocket=flag.String("authSocket","","Optional: Unix domain socket to dial authBackend at")
varpprofListenAddr=flag.String("pprofListenAddr","","pprof listening address, e.g. 'localhost:6060'")
vardocumentRoot=flag.String("documentRoot","public","Path to static files content")
varresponseHeadersTimeout=flag.Duration("proxyHeadersTimeout",badgateway.DefaultTransport.ResponseHeaderTimeout,"How long to wait for response headers when proxying the request")
varproxyHeadersTimeout=flag.Duration("proxyHeadersTimeout",time.Minute,"How long to wait for response headers when proxying the request")
vardevelopmentMode=flag.Bool("developmentMode",false,"Allow to serve assets from Rails app")