@@ -14,6 +14,7 @@ In this file we start the web server and hand off to the upstream type.
packagemain
import(
"./internal/badgateway"
"./internal/upstream"
"flag"
"fmt"
...
...
@@ -36,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",upstream.DefaultTransport.ResponseHeaderTimeout,"How long to wait for response headers when proxying the request")
varresponseHeadersTimeout=flag.Duration("proxyHeadersTimeout",badgateway.DefaultTransport.ResponseHeaderTimeout,"How long to wait for response headers when proxying the request")
vardevelopmentMode=flag.Bool("developmentMode",false,"Allow to serve assets from Rails app")