Skip to content

Commit

Permalink
Fixed static path
Browse files Browse the repository at this point in the history
  • Loading branch information
MeNsaaH committed Nov 6, 2020
1 parent 1ea5a41 commit 48df31d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 112,10 @@ func LoadConfig() *Config {
log.Fatal("No providers specified. Reka needs atleast one provider to monitor")
}

if !path.IsAbs(viper.GetString("StaticPath")) {
config.staticPath = path.Join(workingDir, viper.GetString("StaticPath"))
}

awsConfig := loadAwsConfig(viper.GetString("aws.AccessKeyID"), viper.GetString("aws.SecretAccessKey"), viper.GetString("aws.DefaultRegion"))
config.Aws = &awsConfig

Expand Down

0 comments on commit 48df31d

Please sign in to comment.