Skip to content

Commit bd6e63f

Browse files
authored
Add Sequelize SSL config format
1 parent c3c89d6 commit bd6e63f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: content/features/6-ssl.mdx

+20
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,23 @@ const config = {
5959
},
6060
}
6161
```
62+
63+
## Note
64+
With Sequelize you may actually need to store the SSL information one level below the other connection information, under dialectOptions, like this:
65+
66+
```js
67+
const config = {
68+
username:,
69+
password:,
70+
database:,
71+
host:,
72+
dialect: "postgres",
73+
dialectOptions: {
74+
ssl: {
75+
rejectUnauthorized: true,
76+
ca: process.env.CA_CERT,
77+
},
78+
},
79+
logging:
80+
}
81+
```

0 commit comments

Comments
 (0)