Config: Read in PrometheusNoAuth correctly

Previously setting --prometheus-no-auth flag would override --prometheus
This commit is contained in:
networkException
2021-09-04 01:09:41 +02:00
parent 8642729a51
commit f373e45bc8

View File

@@ -52,7 +52,7 @@ func init() {
flags.BoolVar(&server.AppendOnly, "append-only", server.AppendOnly, "enable append only mode")
flags.BoolVar(&server.PrivateRepos, "private-repos", server.PrivateRepos, "users can only access their private repo")
flags.BoolVar(&server.Prometheus, "prometheus", server.Prometheus, "enable Prometheus metrics")
flags.BoolVar(&server.Prometheus, "prometheus-no-auth", server.PrometheusNoAuth, "disable auth for Prometheus /metrics endpoint")
flags.BoolVar(&server.PrometheusNoAuth, "prometheus-no-auth", server.PrometheusNoAuth, "disable auth for Prometheus /metrics endpoint")
}
var version = "0.10.0-dev"