Browse Source

Merge pull request #3578 from nocodb/fix/3576-nc-config

fix(nocodb): use port from connection URL
pull/3589/head
navi 2 years ago committed by GitHub
parent
commit
f20563af04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/lib/utils/NcConfigFactory.ts

2
packages/nocodb/src/lib/utils/NcConfigFactory.ts

@ -214,6 +214,7 @@ export default class NcConfigFactory implements NcConfig {
...defaultConnectionConfig,
...parsedQuery,
host: url.hostname,
port: +url.port,
},
// pool: {
// min: 1,
@ -325,6 +326,7 @@ export default class NcConfigFactory implements NcConfig {
...defaultConnectionConfig,
...parsedQuery,
host: url.hostname,
port: +url.port,
},
acquireConnectionTimeout: 600000,
...(url.searchParams.has('search_path')

Loading…
Cancel
Save