mirror of
https://github.com/gogs/gogs.git
synced 2025-12-16 21:30:00 +01:00
conf: enable value mapping from env vars (#8057)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user