Skip to content

Commit

Permalink
fix(mongodb): update ssl connection settings (meanjs#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal authored and cicorias committed Sep 12, 2017
1 parent d01c533 commit 32d4fec
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions config/env/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ module.exports = {
uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean',
options: {
/**
* Uncomment to enable ssl certificate based authentication to mongodb
* servers. Adjust the settings below for your specific certificate
* setup.
* for connect to a replicaset, rename server:{...} to replset:{...}
server: {
ssl: true,
sslValidate: false,
checkServerIdentity: false,
sslCA: fs.readFileSync('./config/sslcerts/ssl-ca.pem'),
sslCert: fs.readFileSync('./config/sslcerts/ssl-cert.pem'),
sslKey: fs.readFileSync('./config/sslcerts/ssl-key.pem'),
sslPass: '1234'
}
* Uncomment to enable ssl certificate based authentication to mongodb
* servers. Adjust the settings below for your specific certificate
* setup.
* for connect to a replicaset, rename server:{...} to replset:{...}
ssl: true,
sslValidate: false,
checkServerIdentity: false,
sslCA: fs.readFileSync('./config/sslcerts/ssl-ca.pem'),
sslCert: fs.readFileSync('./config/sslcerts/ssl-cert.pem'),
sslKey: fs.readFileSync('./config/sslcerts/ssl-key.pem'),
sslPass: '1234'
*/
},
// Enable mongoose debug mode
Expand Down

0 comments on commit 32d4fec

Please sign in to comment.