Browse Source

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

ᴊᴏᴇ ᴄʜᴇɴ 1 week ago
parent
commit
79cc921892
1 changed files with 1 additions and 0 deletions
  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")