mirror of
https://github.com/gogs/gogs.git
synced 2025-12-17 05:40: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"`)
|
return errors.Wrap(err, `parse "app.ini"`)
|
||||||
}
|
}
|
||||||
File.NameMapper = ini.SnackCase
|
File.NameMapper = ini.SnackCase
|
||||||
|
File.ValueMapper = os.ExpandEnv
|
||||||
|
|
||||||
if customConf == "" {
|
if customConf == "" {
|
||||||
customConf = filepath.Join(CustomDir(), "conf", "app.ini")
|
customConf = filepath.Join(CustomDir(), "conf", "app.ini")
|
||||||
|
|||||||
Reference in New Issue
Block a user