|
|
@ -164,13 +164,15 @@ export default class NcConfigFactory implements NcConfig { |
|
|
|
password: |
|
|
|
password: |
|
|
|
url.searchParams.get('p') || url.searchParams.get('password'), |
|
|
|
url.searchParams.get('p') || url.searchParams.get('password'), |
|
|
|
port: +url.port, |
|
|
|
port: +url.port, |
|
|
|
user: url.searchParams.get('u') || url.searchParams.get('user') |
|
|
|
user: url.searchParams.get('u') || url.searchParams.get('user'), |
|
|
|
|
|
|
|
connectTimeout: url.searchParams.get('connectTimeout') || 60000, |
|
|
|
|
|
|
|
requestTimeout: url.searchParams.get('requestTimeout') || 60000 |
|
|
|
}, |
|
|
|
}, |
|
|
|
// pool: {
|
|
|
|
// pool: {
|
|
|
|
// min: 1,
|
|
|
|
// min: 1,
|
|
|
|
// max: 1
|
|
|
|
// max: 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
acquireConnectionTimeout: 600000 |
|
|
|
acquireConnectionTimeout: 60000 |
|
|
|
} as any; |
|
|
|
} as any; |
|
|
|
|
|
|
|
|
|
|
|
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED) { |
|
|
|
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED) { |
|
|
@ -268,9 +270,11 @@ export default class NcConfigFactory implements NcConfig { |
|
|
|
password: |
|
|
|
password: |
|
|
|
url.searchParams.get('p') || url.searchParams.get('password'), |
|
|
|
url.searchParams.get('p') || url.searchParams.get('password'), |
|
|
|
port: +url.port, |
|
|
|
port: +url.port, |
|
|
|
user: url.searchParams.get('u') || url.searchParams.get('user') |
|
|
|
user: url.searchParams.get('u') || url.searchParams.get('user'), |
|
|
|
|
|
|
|
connectTimeout: url.searchParams.get('connectTimeout') || 60000, |
|
|
|
|
|
|
|
requestTimeout: url.searchParams.get('requestTimeout') || 60000 |
|
|
|
}, |
|
|
|
}, |
|
|
|
acquireConnectionTimeout: 600000, |
|
|
|
acquireConnectionTimeout: 60000, |
|
|
|
...(url.searchParams.has('search_path') |
|
|
|
...(url.searchParams.has('search_path') |
|
|
|
? { |
|
|
|
? { |
|
|
|
searchPath: url.searchParams.get('search_path').split(',') |
|
|
|
searchPath: url.searchParams.get('search_path').split(',') |
|
|
|