Skip to content

Commit

Permalink
added secret file loading if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
TeisNP committed Feb 12, 2024
1 parent 6882ebd commit 7c9a9f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ func initConfig() {
logrus.Info("Using config file: ", viper.ConfigFileUsed())
}

viper.SetConfigName("secrets")
if err := viper.MergeInConfig(); err == nil {
logrus.Info("Using secret file: ", viper.ConfigFileUsed())
}

viper.AutomaticEnv()
}

Expand Down

0 comments on commit 7c9a9f1

Please sign in to comment.