Skip to content

Commit 42649b7

Browse files
committed
fix: set the PG_META_DB_SSL_ROOT_CERT in DEFAULT_POOL_CONFIG
1 parent ff5b6c5 commit 42649b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const GENERATE_TYPES_INCLUDED_SCHEMAS =
4242
export const DEFAULT_POOL_CONFIG: PoolConfig = {
4343
max: 1,
4444
connectionTimeoutMillis: PG_CONN_TIMEOUT_SECS * 1000,
45+
ssl: PG_META_DB_SSL_ROOT_CERT ? { ca: PG_META_DB_SSL_ROOT_CERT } : undefined,
4546
}
4647

4748
export const PG_META_REQ_HEADER = process.env.PG_META_REQ_HEADER || 'request-id'

0 commit comments

Comments
 (0)