Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve committed Aug 29, 2023
1 parent 4b11c92 commit ee7f172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions back-strapi/config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ module.exports = ({ env }) => ({
database: env("DATABASE_NAME", "tumeplay_dev"),
username: env("DATABASE_USERNAME", "db_user"),
password: env("DATABASE_PASSWORD", "Mjolnir64"),
ssl: getSslConfig()
ssl: getSslConfig(env)
},
options: {},
},
},
});


function getSslConfig() {
function getSslConfig(env) {
if (env.bool("DATABASE_SSL", false)) {
return {rejectUnauthorized: false} // For self-signed certificates
}
Expand Down

0 comments on commit ee7f172

Please sign in to comment.