refactor(core): Increase Postgres connection timeout to 20 seconds (#10705)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
@@ -77,7 +77,7 @@ class PostgresConfig {
|
||||
|
||||
/** Postgres connection timeout (ms) */
|
||||
@Env('DB_POSTGRESDB_CONNECTION_TIMEOUT')
|
||||
connectionTimeoutMs: number = 1000;
|
||||
connectionTimeoutMs: number = 20_000;
|
||||
|
||||
@Nested
|
||||
ssl: PostgresSSLConfig;
|
||||
|
||||
@@ -47,7 +47,7 @@ describe('GlobalConfig', () => {
|
||||
poolSize: 2,
|
||||
port: 5432,
|
||||
schema: 'public',
|
||||
connectionTimeoutMs: 1000,
|
||||
connectionTimeoutMs: 20_000,
|
||||
ssl: {
|
||||
ca: '',
|
||||
cert: '',
|
||||
|
||||
Reference in New Issue
Block a user