mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 02:01:29 +10:00
fix(databasemodule): make ssl optional, pass ca cert as base64 env
This commit is contained in:
@ -19,6 +19,9 @@ import { User } from '@/users/entities/user.entity';
|
||||
database: configService.get<string>('postgres.database'),
|
||||
synchronize: true,
|
||||
entities: [User, Resume],
|
||||
ssl: configService.get<string>('postgres.certificate') && {
|
||||
ca: Buffer.from(configService.get<string>('postgres.certificate'), 'base64').toString('ascii'),
|
||||
},
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user