From c0e0f8cbd2a168a093be5a1e77649c200c42c4d4 Mon Sep 17 00:00:00 2001 From: Nathaniel Waisbrot Date: Tue, 26 Dec 2023 23:36:28 -0500 Subject: [PATCH] set insecure tls --- metrics/influx.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metrics/influx.go b/metrics/influx.go index 82573bc..984af8a 100644 --- a/metrics/influx.go +++ b/metrics/influx.go @@ -2,6 +2,7 @@ package metrics import ( "context" + "crypto/tls" "time" influxdb "github.com/influxdata/influxdb-client-go/v2" @@ -16,7 +17,7 @@ var invokeTime time.Time func initInflux() { influxClient = influxdb.NewClient(viper.GetString("influx.url"), viper.GetString("influx.token")) - influxdb.DefaultOptions().AddDefaultTag("application", "birdweather_digest") + influxdb.DefaultOptions().AddDefaultTag("application", "birdweather_digest").SetTLSConfig(&tls.Config{InsecureSkipVerify: true}) writeAPI = influxClient.WriteAPIBlocking(viper.GetString("influx.org"), viper.GetString("influx.bucket")) produceMetrics = true }