From 70bd952ee1a0fa3b614824c0fc20be5652f5b04b Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Thu, 18 Mar 2021 11:38:42 +0100 Subject: [PATCH] Add ssl to sequelize --- app/models/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/index.js b/app/models/index.js index f298a63..87f43b8 100644 --- a/app/models/index.js +++ b/app/models/index.js @@ -16,7 +16,7 @@ config.logging = parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false; let sequelize; if (config.use_env_variable) { - sequelize = new Sequelize(process.env[config.use_env_variable], config); + sequelize = new Sequelize(process.env[config.use_env_variable] + "?ssl=true", config); } else { sequelize = new Sequelize( config.database,