File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ const PG_META_DB_USER = process.env.PG_META_DB_USER || 'postgres'
77const PG_META_DB_PORT = Number ( process . env . PG_META_DB_PORT ) || 5432
88const PG_META_DB_PASSWORD = process . env . PG_META_DB_PASSWORD || 'postgres'
99
10+ const PG_CONN_TIMEOUT_SECS = Number ( process . env . PG_CONN_TIMEOUT_SECS || 15 )
11+
1012export const PG_CONNECTION = `postgres://${ PG_META_DB_USER } :${ PG_META_DB_PASSWORD } @${ PG_META_DB_HOST } :${ PG_META_DB_PORT } /${ PG_META_DB_NAME } ?sslmode=disable`
1113
1214export const PG_META_EXPORT_DOCS = process . env . PG_META_EXPORT_DOCS === 'true' || false
1315
14- export const DEFAULT_POOL_CONFIG = { max : 1 }
16+ export const DEFAULT_POOL_CONFIG = { max : 1 , connectionTimeoutMillis : PG_CONN_TIMEOUT_SECS * 1000 }
You can’t perform that action at this time.
0 commit comments