start deployment stuff
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-12-17 22:36:13 +01:00
parent ee2c5f31e8
commit 96377e9572
3 changed files with 8 additions and 11 deletions

View File

@ -12,7 +12,6 @@ type ConfigT struct {
Mqtt struct {
Broker string `json:"broker"`
Username string `json:"username"`
PasswordEnvVar string `json:"passwordEnvVar"`
Password string
TlsEnable string `json:"tlsEnable"`
} `json:"mqtt"`
@ -36,8 +35,6 @@ func LoadConfiguration() {
log.Fatalf("Unable to parse configuration: %s", err)
}
if Config.Mqtt.PasswordEnvVar != "" {
Config.Mqtt.Password = os.Getenv(Config.Mqtt.PasswordEnvVar)
}
Config.Mqtt.Password = os.Getenv("MQTT_PASSWORD")
}