1646393163
This commit is contained in:
parent
e1529e03f9
commit
269d5206e6
|
@ -13,7 +13,7 @@ POSTGRES_PORT=5432
|
|||
POSTGRES_USERNAME=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_DATABASE=reactive_resume
|
||||
CA_CERT=
|
||||
POSTGRES_SSL_CERT=
|
||||
|
||||
# Auth
|
||||
JWT_SECRET=change-me
|
||||
|
|
|
@ -25,6 +25,7 @@ const validationSchema = Joi.object({
|
|||
POSTGRES_USERNAME: Joi.string().required(),
|
||||
POSTGRES_PASSWORD: Joi.string().required(),
|
||||
POSTGRES_DATABASE: Joi.string().required(),
|
||||
POSTGRES_SSL_CERT: Joi.string().allow(''),
|
||||
|
||||
// Auth
|
||||
JWT_SECRET: Joi.string().required(),
|
||||
|
|
|
@ -6,5 +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,
|
||||
certificate: process.env.POSTGRES_SSL_CERT,
|
||||
}));
|
||||
|
|
|
@ -17,9 +17,11 @@ 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],
|
||||
ssl: {
|
||||
ca: configService.get<string>('postgres.certificate'),
|
||||
},
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue