api: config files have lower precedence than envvars
This commit is contained in:
@@ -41,6 +41,10 @@ func configFileLoad(filepath string) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if os.Getenv(key[9:]) != "" {
|
||||
continue
|
||||
}
|
||||
|
||||
os.Setenv(key[9:], value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user