mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
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