config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2023-12-13 11:40:17 +01:00
parent 2dd830907d
commit d8677d685b
3 changed files with 29 additions and 0 deletions

View File

@ -35,5 +35,9 @@ func LoadConfiguration() {
if err != nil {
log.Fatalf("Unable to parse configuration: %s", err)
}
if Config.Mqtt.Password == "ENV" {
Config.Mqtt.Password = os.Getenv("MQTT_PASSWORD")
}
}