chore: unneeded config.go

This commit is contained in:
Derrick Hammer 2024-02-24 05:43:08 -05:00
parent 7987e597b0
commit 995b227d7e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 23 deletions

View File

@ -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()
}