@@ -14,6 +14,7 @@ In this file we start the web server and hand off to the upstream type.
...
@@ -14,6 +14,7 @@ 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"
...
@@ -36,7 +37,7 @@ var authBackend = URLFlag("authBackend", upstream.DefaultBackend, "Authenticatio
...
@@ -36,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",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")
vardevelopmentMode=flag.Bool("developmentMode",false,"Allow to serve assets from Rails app")