From 995b227d7ecb321238b1843211d40007898f0dd9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 24 Feb 2024 05:43:08 -0500 Subject: [PATCH] chore: unneeded config.go --- config.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 config.go diff --git a/config.go b/config.go deleted file mode 100644 index 33f7656..0000000 --- a/config.go +++ /dev/null @@ -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() -}