feat: Add enable ssl field to PostgreSQL connection
This commit is contained in:
@@ -8,11 +8,13 @@ const getClient = ($: IGlobalVariable): Knex<any, unknown[]> => {
|
||||
connection: {
|
||||
host: $.auth.data.host as string,
|
||||
port: Number($.auth.data.port),
|
||||
ssl: ($.auth.data.enableSsl === 'true' ||
|
||||
$.auth.data.enableSsl === true) as boolean,
|
||||
user: $.auth.data.user as string,
|
||||
password: $.auth.data.password as string,
|
||||
database: $.auth.data.database as string,
|
||||
}
|
||||
})
|
||||
},
|
||||
});
|
||||
|
||||
return client;
|
||||
};
|
||||
|
Reference in New Issue
Block a user