remove env prefix
This commit is contained in:
parent
e30418b357
commit
83e70898dd
2
proxy.go
2
proxy.go
@ -97,7 +97,6 @@ func main() {
|
||||
// use .env file if it exists
|
||||
if _, err := os.Stat(".env"); err == nil {
|
||||
if err := ff.Parse(flagset, os.Args[1:],
|
||||
ff.WithEnvVarPrefix("shelly-proxy"),
|
||||
ff.WithConfigFile(".env"),
|
||||
ff.WithConfigFileParser(ff.EnvParser),
|
||||
); err != nil {
|
||||
@ -107,7 +106,6 @@ func main() {
|
||||
} else {
|
||||
// use env variables and shelly-proxy.ini file
|
||||
if err := ff.Parse(flagset, os.Args[1:],
|
||||
ff.WithEnvVarPrefix("shelly-proxy"),
|
||||
ff.WithConfigFileFlag("config"),
|
||||
ff.WithConfigFileParser(IniParser),
|
||||
); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user