Skip to content

Commit

Permalink
Support SSL in configuration and set export variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctigeek committed Feb 2, 2016
1 parent 7fc20f7 commit dfcfcb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (process.env.VCAP_SERVICES) {
port: 27017,
url: '"mongodb://localhost:27017/db',
username: 'admin',
ssl: false
};
}

Expand All @@ -32,6 +33,9 @@ module.exports = {
server: process.env.ME_CONFIG_MONGODB_SERVER || mongo.host,
port: process.env.ME_CONFIG_MONGODB_PORT || mongo.port,

//useSSL: connect to the server using secure SSL
useSSL: process.env.ME_CONFIG_MONGODB_SSL || mongo.ssl,

//autoReconnect: automatically reconnect if connection is lost
autoReconnect: true,

Expand Down

0 comments on commit dfcfcb6

Please sign in to comment.