Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
config default location
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jan 7, 2020
1 parent dec2efd commit 133565b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (s *Server) viperConf() (*engine.Config, error) {

viper.SetConfigName("cloud-torrent")
viper.AddConfigPath("/etc/cloud-torrent/")
viper.AddConfigPath("/etc/")
viper.AddConfigPath("$HOME/.cloud-torrent")

if fileExists(s.ConfigPath) {
Expand Down

0 comments on commit 133565b

Please sign in to comment.