diff --git a/fingerproxy.go b/fingerproxy.go index 50a3b62..371c36a 100644 --- a/fingerproxy.go +++ b/fingerproxy.go @@ -23,6 +23,14 @@ import ( const logFlags = log.LstdFlags | log.Lshortfile | log.Lmsgprefix +const ( + // TODO: expose these values in CLI flags + HTTPIdleTimeout = 180 * time.Second + HTTPReadTimeout = 60 * time.Second + HTTPWriteTimeout = 60 * time.Second + ReverseProxyFlushInterval = 100 * time.Millisecond +) + var ( ProxyServerLog = log.New(os.Stderr, "[proxyserver] ", logFlags) HTTPServerLog = log.New(os.Stderr, "[http] ", logFlags) @@ -33,12 +41,6 @@ var ( PrometheusRegistry = prometheus.NewRegistry() - HTTPIdleTimeout = 180 * time.Second - HTTPReadTimeout = 60 * time.Second - HTTPWriteTimeout = 60 * time.Second - - ReverseProxyFlushInterval = 100 * time.Millisecond - GetHeaderInjectors = DefaultHeaderInjectors BuildCommit = "GIT_COMMIT_PLACEHOLDER"