mirror of
https://github.com/lingble/twenty.git
synced 2025-10-31 20:57:55 +00:00
fix: twentyORM datasource configuration for ssl (#5529)
We need to specify ssl configuration for TwentyORM datasources when needed, otherwise connection will be broken.
This commit is contained in:
@@ -38,6 +38,11 @@ export class WorkspaceDatasourceFactory {
|
|||||||
logging: 'all',
|
logging: 'all',
|
||||||
schema: dataSourceMetadata.schema,
|
schema: dataSourceMetadata.schema,
|
||||||
entities,
|
entities,
|
||||||
|
ssl: this.environmentService.get('PG_SSL_ALLOW_SELF_SIGNED')
|
||||||
|
? {
|
||||||
|
rejectUnauthorized: false,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
await workspaceDataSource.initialize();
|
await workspaceDataSource.initialize();
|
||||||
|
|||||||
Reference in New Issue
Block a user