[#1] Fix viper env prefix in cli tools

Changing env prefix and corresponding example config files.

Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
This commit is contained in:
Stanislav Bogatyrev 2023-02-03 17:59:15 +03:00 committed by Stanislav Bogatyrev
parent 73bc1b0b68
commit 1858f11146
12 changed files with 224 additions and 224 deletions

View file

@ -8,14 +8,14 @@ import (
)
func newConfig(path string) (*viper.Viper, error) {
const innerRingPrefix = "neofs_ir"
const envPrefix = "FROSTFS_IR"
var (
err error
v = viper.New()
)
v.SetEnvPrefix(innerRingPrefix)
v.SetEnvPrefix(envPrefix)
v.AutomaticEnv()
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))