mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 04:12:28 +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',
|
||||
schema: dataSourceMetadata.schema,
|
||||
entities,
|
||||
ssl: this.environmentService.get('PG_SSL_ALLOW_SELF_SIGNED')
|
||||
? {
|
||||
rejectUnauthorized: false,
|
||||
}
|
||||
: undefined,
|
||||
});
|
||||
|
||||
await workspaceDataSource.initialize();
|
||||
|
||||
Reference in New Issue
Block a user