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:
@ -13,6 +13,7 @@ POSTGRES_PORT=5432
|
|||||||
POSTGRES_USERNAME=postgres
|
POSTGRES_USERNAME=postgres
|
||||||
POSTGRES_PASSWORD=postgres
|
POSTGRES_PASSWORD=postgres
|
||||||
POSTGRES_DATABASE=reactive_resume
|
POSTGRES_DATABASE=reactive_resume
|
||||||
|
CA_CERT=
|
||||||
|
|
||||||
# Auth
|
# Auth
|
||||||
JWT_SECRET=change-me
|
JWT_SECRET=change-me
|
||||||
|
|||||||
@ -6,4 +6,5 @@ export default registerAs('postgres', () => ({
|
|||||||
username: process.env.POSTGRES_USERNAME,
|
username: process.env.POSTGRES_USERNAME,
|
||||||
password: process.env.POSTGRES_PASSWORD,
|
password: process.env.POSTGRES_PASSWORD,
|
||||||
database: process.env.POSTGRES_DATABASE,
|
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'),
|
username: configService.get<string>('postgres.username'),
|
||||||
password: configService.get<string>('postgres.password'),
|
password: configService.get<string>('postgres.password'),
|
||||||
database: configService.get<string>('postgres.database'),
|
database: configService.get<string>('postgres.database'),
|
||||||
|
ssl: { ca: configService.get<string>('postgres.certtificate') },
|
||||||
synchronize: true,
|
synchronize: true,
|
||||||
entities: [User, Resume],
|
entities: [User, Resume],
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user