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

Commit

Permalink
Merge branch 'sync' into unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
DeviaVir committed Apr 23, 2018
2 parents fcb1a9d + 8668773 commit fd0e24a
Show file tree
Hide file tree
Showing 5 changed files with 1,774 additions and 1,054 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.env
*.tar.gz
*.log.*
t.js
Expand Down
4 changes: 2 additions & 2 deletions boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function (cb) {
authStr += '@'

// authMechanism could be a conf.js parameter to support more mongodb authentication methods
authMechanism = 'DEFAULT'
authMechanism = zenbot.conf.mongo.authMechanism || 'DEFAULT'
}

if (zenbot.conf.mongo.connectionString) {
Expand All @@ -68,4 +68,4 @@ module.exports = function (cb) {
_.set(zenbot, 'conf.db.mongo', db)
cb(null, zenbot)
})
}
}
1 change: 1 addition & 0 deletions conf-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ c.mongo.username = null
c.mongo.password = null
// when using mongodb replication, i.e. when running a mongodb cluster, you can define your replication set here; when you are not using replication (most of the users), just set it to `null` (default).
c.mongo.replicaSet = null
c.mongo.authMechanism = null

// default selector. only used if omitting [selector] argument from a command.
c.selector = 'gdax.BTC-USD'
Expand Down
Loading

0 comments on commit fd0e24a

Please sign in to comment.