diff --git a/packages/@n8n/config/src/configs/database.config.ts b/packages/@n8n/config/src/configs/database.config.ts index 785d91b4bf..cebbf2191a 100644 --- a/packages/@n8n/config/src/configs/database.config.ts +++ b/packages/@n8n/config/src/configs/database.config.ts @@ -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; diff --git a/packages/@n8n/config/test/config.test.ts b/packages/@n8n/config/test/config.test.ts index ecb254184a..118cf5a1bf 100644 --- a/packages/@n8n/config/test/config.test.ts +++ b/packages/@n8n/config/test/config.test.ts @@ -47,7 +47,7 @@ describe('GlobalConfig', () => { poolSize: 2, port: 5432, schema: 'public', - connectionTimeoutMs: 1000, + connectionTimeoutMs: 20_000, ssl: { ca: '', cert: '',