chore: unneeded config.go
This commit is contained in:
parent
7987e597b0
commit
995b227d7e
23
config.go
23
config.go
|
@ -1,23 +0,0 @@
|
|||
package main
|
||||
|
||||
import "github.com/spf13/viper"
|
||||
|
||||
var (
|
||||
ConfigFilePaths = []string{
|
||||
"/etc/lumeweb/portal/",
|
||||
"$HOME/.lumeweb/portal/",
|
||||
".",
|
||||
}
|
||||
)
|
||||
|
||||
func Init() {
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
|
||||
for _, path := range ConfigFilePaths {
|
||||
viper.AddConfigPath(path)
|
||||
}
|
||||
|
||||
viper.SetEnvPrefix("LUME_WEB_PORTAL")
|
||||
viper.AutomaticEnv()
|
||||
}
|
Loading…
Reference in New Issue