mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
add option to pass CA certificate for database deploys
This commit is contained in:
@ -6,4 +6,5 @@ export default registerAs('postgres', () => ({
|
||||
username: process.env.POSTGRES_USERNAME,
|
||||
password: process.env.POSTGRES_PASSWORD,
|
||||
database: process.env.POSTGRES_DATABASE,
|
||||
certificate: process.env.CA_CERT,
|
||||
}));
|
||||
|
||||
@ -17,6 +17,7 @@ import { User } from '@/users/entities/user.entity';
|
||||
username: configService.get<string>('postgres.username'),
|
||||
password: configService.get<string>('postgres.password'),
|
||||
database: configService.get<string>('postgres.database'),
|
||||
ssl: { ca: configService.get<string>('postgres.certtificate') },
|
||||
synchronize: true,
|
||||
entities: [User, Resume],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user