Skip to content

Commit 0fca6f6

Browse files
committed
fix(database): add SSL configuration for production environment
1 parent 0f1184d commit 0fca6f6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/backend/src/infrastructure/db/database.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ import { INVOICE_NOTE_REPOSITORY } from '../../domain/repositories/invoice-note.
3737
useFactory: () => ({
3838
type: 'postgres' as const,
3939
url: process.env.DATABASE_URL,
40+
ssl:
41+
process.env.NODE_ENV === 'production'
42+
? { rejectUnauthorized: false }
43+
: false,
4044
entities: [
4145
UserOrmEntity,
4246
UserCredentialOrmEntity,

0 commit comments

Comments
 (0)