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'
7
7
const PG_META_DB_PORT = Number ( process . env . PG_META_DB_PORT ) || 5432
8
8
const PG_META_DB_PASSWORD = process . env . PG_META_DB_PASSWORD || 'postgres'
9
9
10
+ const PG_CONN_TIMEOUT_SECS = Number ( process . env . PG_CONN_TIMEOUT_SECS || 15 )
11
+
10
12
export 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`
11
13
12
14
export const PG_META_EXPORT_DOCS = process . env . PG_META_EXPORT_DOCS === 'true' || false
13
15
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