diff --git a/cacheproxy/proxy/main.go b/cacheproxy/proxy/main.go index 62866c1..0c4f34e 100644 --- a/cacheproxy/proxy/main.go +++ b/cacheproxy/proxy/main.go @@ -297,16 +297,14 @@ func main() { authKey: os.Getenv("AUTH_KEY"), } - handler.proxy.Verbose = true - + handler.proxy.Verbose = os.Getenv("VERBOSE_LOGS") == "t" handler.proxy.OnRequest().HandleConnect(goproxy.FuncHttpsHandler(handler.HandleConnect)) handler.proxy.OnRequest().DoFunc(handler.OnRequest) handler.proxy.OnResponse().DoFunc(handler.OnResponse) log.Printf("Proxy started on :8888") srv := &http.Server{ - Addr: ":8888", - // Handler: http.TimeoutHandler(handler, time.Minute, "timed out"), + Addr: ":8888", Handler: handler, ReadTimeout: time.Second * 10, IdleTimeout: time.Minute * 2, diff --git a/compose.yml b/compose.yml index 11f910c..d2cfb0c 100644 --- a/compose.yml +++ b/compose.yml @@ -58,6 +58,7 @@ services: environment: REDIS_URL: "redis://redis:6379/2" AUTH_KEY: "${CACHEPROXY_AUTH_KEY:-changeme}" + VERBOSE_LOGS: "f" ports: - "8888:8888" depends_on: