Skip to content

Commit

Permalink
Bugfixs πŸ›
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlaine committed May 4, 2023
1 parent 2dfff96 commit b0e8bc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ormconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const config: TypeOrmModuleOptions = {
// Run migrations automatically,
// you can disable this if you prefer running migration manually.
migrationsRun: true,
ssl: {
rejectUnauthorized: false
}
};

if (process.env.DATABASE_SSL_CERT) {
// @ts-ignore
config.ssl = {
rejectUnauthorized: false,
ca: process.env.DATABASE_SSL_CERT,
}
config.ssl.ca = process.env.DATABASE_SSL_CERT;
}

export = config;

0 comments on commit b0e8bc0

Please sign in to comment.