浏览代码

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

ᴊᴏᴇ ᴄʜᴇɴ 3 周之前
父节点
当前提交
79cc921892
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      internal/conf/conf.go

+ 1 - 0
internal/conf/conf.go

@@ -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")