From bd6e63ffc4cfc84e3fe2f1050a1358f3340ce59a Mon Sep 17 00:00:00 2001 From: Poglavar <108405780+Poglavar@users.noreply.github.com> Date: Wed, 24 Aug 2022 10:33:51 +0200 Subject: [PATCH] Add Sequelize SSL config format --- content/features/6-ssl.mdx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/content/features/6-ssl.mdx b/content/features/6-ssl.mdx index 0428d05..8f8e63a 100644 --- a/content/features/6-ssl.mdx +++ b/content/features/6-ssl.mdx @@ -59,3 +59,23 @@ const config = { }, } ``` + +## Note +With Sequelize you may actually need to store the SSL information one level below the other connection information, under dialectOptions, like this: + +```js +const config = { + username:, + password:, + database:, + host:, + dialect: "postgres", + dialectOptions: { + ssl: { + rejectUnauthorized: true, + ca: process.env.CA_CERT, + }, + }, + logging: +} +```