Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed May 27, 2015
1 parent af1e205 commit bcf4d2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dcron/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dcron

import (
"encoding/base64"
"fmt"
"net"
"time"
Expand Down Expand Up @@ -28,8 +29,12 @@ type Config struct {
KeyringFile string
RejoinAfterLeave bool
Server bool
EncryptKey string
}

// This is the default port that we use for Serf communication
const DefaultBindPort int = 7946

func init() {
viper.SetConfigName("dcron") // name of config file (without extension)
viper.AddConfigPath("./config") // call multiple times to add many search paths
Expand Down

0 comments on commit bcf4d2b

Please sign in to comment.