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