You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
jcharnley
changed the title
Incoprate SSL and username & password in your Options Object, db_connection.js
Incorporate SSL and username & password in your Options Object, db_connection.js
Dec 14, 2018
you can add the ssl and username and password to the options object like so...
const options = {
host: params.hostname,
port: params.port,
database: params.pathname.split('/')[1],
max: process.env.DB_MAX_CONNECTIONS || 2,
ssl: params.hostname !== 'localhost',
user: username,
password
};
The text was updated successfully, but these errors were encountered: