diff --git a/fingerproxy.go b/fingerproxy.go index 371c36a..343cd9f 100644 --- a/fingerproxy.go +++ b/fingerproxy.go @@ -31,6 +31,12 @@ const ( ReverseProxyFlushInterval = 100 * time.Millisecond ) +var ( + // values from CI build + BuildCommit = "GIT_COMMIT_PLACEHOLDER" + BuildTag = "GIT_TAG_PLACEHOLDER" +) + var ( ProxyServerLog = log.New(os.Stderr, "[proxyserver] ", logFlags) HTTPServerLog = log.New(os.Stderr, "[http] ", logFlags) @@ -41,11 +47,7 @@ var ( PrometheusRegistry = prometheus.NewRegistry() - GetHeaderInjectors = DefaultHeaderInjectors - - BuildCommit = "GIT_COMMIT_PLACEHOLDER" - BuildTag = "GIT_TAG_PLACEHOLDER" - + GetHeaderInjectors = DefaultHeaderInjectors DefaultReverseProxyHTTPHandler = defaultReverseProxyHTTPHandler )