Skip to content

Commit bb6df43

Browse files
authored
fix: twentyORM datasource configuration for ssl (#5529)
We need to specify ssl configuration for TwentyORM datasources when needed, otherwise connection will be broken.
1 parent 474dfd7 commit bb6df43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/twenty-server/src/engine/twenty-orm/factories/workspace-datasource.factory.ts

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ export class WorkspaceDatasourceFactory {
3838
logging: 'all',
3939
schema: dataSourceMetadata.schema,
4040
entities,
41+
ssl: this.environmentService.get('PG_SSL_ALLOW_SELF_SIGNED')
42+
? {
43+
rejectUnauthorized: false,
44+
}
45+
: undefined,
4146
});
4247

4348
await workspaceDataSource.initialize();

0 commit comments

Comments
 (0)