diff --git a/lib/index.js b/lib/index.js index 0d7dbcb..8908b6e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,7 +14,7 @@ module.exports.setDatabaseUrl = (url) => databaseUrl = url module.exports.getDatabaseUrl = () => databaseUrl const params = url.parse(databaseUrl); -let ssl = ( PGSSLMODE === 'require' ), +let ssl = ( PGSSLMODE === 'require' || PGSSLMODE === 'no-verify' ? { rejectUnauthorized: false } : false), auth = params.auth.split(':'), config = { user: auth[0], diff --git a/package.json b/package.json index 9469ff4..67eae95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lib-lequel", - "version": "2.0.0", + "version": "3.0.0", "description": "Simple Database query abstraction library lescapes style", "main": "/lib/", "devDependencies": {