Skip to content

Commit 6d0b9d2

Browse files
authored
Allow self signed certs (#357)
* Allow self signed certs * fixed inline if
1 parent b2defca commit 6d0b9d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

notification/src/notification-config/postgresNotificationRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const POOL_CONFIG: PoolConfig = {
3737
user: POSTGRES_USER,
3838
password: POSTGRES_PW,
3939
database: POSTGRES_DB,
40-
ssl: POSTGRES_SSL,
40+
ssl: POSTGRES_SSL ? { rejectUnauthorized: false } : false,
4141
max: 20,
4242
idleTimeoutMillis: 30000,
4343
connectionTimeoutMillis: 2000

pipeline/src/pipeline-config/pipelineDatabase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const POOL_CONFIG: PoolConfig = {
1313
user: POSTGRES_USER,
1414
password: POSTGRES_PW,
1515
database: POSTGRES_DB,
16-
ssl: POSTGRES_SSL,
16+
ssl: POSTGRES_SSL ? { rejectUnauthorized: false } : false,
1717
max: 20,
1818
idleTimeoutMillis: 30000,
1919
connectionTimeoutMillis: 2000

0 commit comments

Comments
 (0)