From e627fbd32a23a8dc5f8cc9e11daa943923c58f5e Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 24 Sep 2024 10:58:02 +0200 Subject: [PATCH] Influxdb: add insecure option (#16025) --- api/globalconfig/types.go | 3 +++ assets/js/components/Config/InfluxModal.vue | 13 +++++++++++++ cmd/setup.go | 1 + i18n/de.toml | 2 ++ i18n/en.toml | 2 ++ server/influxdb.go | 9 +++++++-- 6 files changed, 28 insertions(+), 2 deletions(-) diff --git a/api/globalconfig/types.go b/api/globalconfig/types.go index aaac7b0ea..42d649e92 100644 --- a/api/globalconfig/types.go +++ b/api/globalconfig/types.go @@ -88,6 +88,7 @@ type Influx struct { Org string `json:"org"` User string `json:"user"` Password string `json:"password"` + Insecure bool `json:"insecure"` } // Redacted implements the redactor interface used by the tee publisher @@ -98,11 +99,13 @@ func (c Influx) Redacted() any { Database string `json:"database"` Org string `json:"org"` User string `json:"user"` + Insecure bool `json:"insecure"` }{ URL: c.URL, Database: c.Database, Org: c.Org, User: c.User, + Insecure: c.Insecure, } } diff --git a/assets/js/components/Config/InfluxModal.vue b/assets/js/components/Config/InfluxModal.vue index 914ecddc9..65153d174 100644 --- a/assets/js/components/Config/InfluxModal.vue +++ b/assets/js/components/Config/InfluxModal.vue @@ -73,6 +73,19 @@ autocomplete="off" /> + +
+ + +
+