Skip to content

Commit

Permalink
fix: twentyORM datasource configuration for ssl (twentyhq#5529)
Browse files Browse the repository at this point in the history
We need to specify ssl configuration for TwentyORM datasources when
needed, otherwise connection will be broken.
  • Loading branch information
magrinj authored May 22, 2024
1 parent 474dfd7 commit bb6df43
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export class WorkspaceDatasourceFactory {
logging: 'all',
schema: dataSourceMetadata.schema,
entities,
ssl: this.environmentService.get('PG_SSL_ALLOW_SELF_SIGNED')
? {
rejectUnauthorized: false,
}
: undefined,
});

await workspaceDataSource.initialize();
Expand Down

0 comments on commit bb6df43

Please sign in to comment.