Skip to content

Commit

Permalink
fix: set the PG_META_DB_SSL_ROOT_CERT in DEFAULT_POOL_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Oct 10, 2023
1 parent ff5b6c5 commit 42649b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const GENERATE_TYPES_INCLUDED_SCHEMAS =
export const DEFAULT_POOL_CONFIG: PoolConfig = {
max: 1,
connectionTimeoutMillis: PG_CONN_TIMEOUT_SECS * 1000,
ssl: PG_META_DB_SSL_ROOT_CERT ? { ca: PG_META_DB_SSL_ROOT_CERT } : undefined,
}

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

0 comments on commit 42649b7

Please sign in to comment.