conf: enable value mapping from env vars (#8057)

This commit is contained in:
ᴊᴏᴇ ᴄʜᴇɴ
2025-11-23 20:59:52 -05:00
committed by GitHub
parent 1347c7802f
commit 79cc921892

View File

@@ -59,6 +59,7 @@ func Init(customConf string) error {
return errors.Wrap(err, `parse "app.ini"`)
}
File.NameMapper = ini.SnackCase
File.ValueMapper = os.ExpandEnv
if customConf == "" {
customConf = filepath.Join(CustomDir(), "conf", "app.ini")