generated from rmcguire/go-server-with-otel
support tls insecure due to cloudblade old TLS cert
This commit is contained in:
@@ -22,6 +22,9 @@ type ServiceConfig struct {
|
||||
EconetEmail string `yaml:"econetEmail" json:"econetEmail,omitempty" env:"ECONET_EMAIL"`
|
||||
EconetPassword string `yaml:"econetPassword" json:"econetPassword,omitempty" env:"ECONET_PASSWORD"`
|
||||
|
||||
// Necessary due to ancient TLS certificate run by cloudblade that isn't trusted in modern ca-certificate bundles
|
||||
EconetTLSInsecure bool `yaml:"econetTLSInsecure" json:"econetTLSInsecure,omitempty" env:"ECONET_TLS_INSECURE" default:"false"`
|
||||
|
||||
// CostPerKWH is the electricity price in US dollars per kWh (e.g. 0.18
|
||||
// means 18 cents/kWh, NOT 18). It derives the econet_energy_cost_dollars
|
||||
// metric from kWh energy usage.
|
||||
|
||||
Reference in New Issue
Block a user