Skip to content

Commit

Permalink
🚀 remove ssl for connection to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Oculux314 committed Sep 10, 2024
1 parent ff81178 commit 38d3fbc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions strapi/config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,7 @@ module.exports = ({ env }) => {
database: env("DATABASE_NAME", "strapi"),
user: env("DATABASE_USERNAME", "strapi"),
password: env("DATABASE_PASSWORD", "strapi"),
ssl: env.bool("DATABASE_SSL", false) && {
key: env("DATABASE_SSL_KEY", undefined),
cert: env("DATABASE_SSL_CERT", undefined),
ca: env("DATABASE_SSL_CA", undefined),
capath: env("DATABASE_SSL_CAPATH", undefined),
cipher: env("DATABASE_SSL_CIPHER", undefined),
rejectUnauthorized: env.bool(
"DATABASE_SSL_REJECT_UNAUTHORIZED",
true
),
},
ssl: env.bool("DATABASE_SSL", false),
schema: env("DATABASE_SCHEMA", "public"),
},
pool: {
Expand Down

0 comments on commit 38d3fbc

Please sign in to comment.