mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:53:41 -05:00
Merge pull request #3258 from overleaf/jpa-config-mongo-server-selection-timeout
[misc] add a config option for the mongo serverSelectionTimeoutMS GitOrigin-RevId: 89b79e4fd5043b003da4ef103ddc919909aa7893
This commit is contained in:
parent
0c6e12a5cb
commit
db422ecafa
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ module.exports = settings =
|
||||||
options: {
|
options: {
|
||||||
useUnifiedTopology: (process.env['MONGO_USE_UNIFIED_TOPOLOGY'] || 'true') == 'true',
|
useUnifiedTopology: (process.env['MONGO_USE_UNIFIED_TOPOLOGY'] || 'true') == 'true',
|
||||||
poolSize: parseInt(process.env['MONGO_POOL_SIZE'], 10) || 10,
|
poolSize: parseInt(process.env['MONGO_POOL_SIZE'], 10) || 10,
|
||||||
|
serverSelectionTimeoutMS: parseInt(process.env['MONGO_SERVER_SELECTION_TIMEOUT'], 10) || 60000,
|
||||||
socketTimeoutMS: parseInt(process.env['MONGO_SOCKET_TIMEOUT'], 10) || 30000,
|
socketTimeoutMS: parseInt(process.env['MONGO_SOCKET_TIMEOUT'], 10) || 30000,
|
||||||
},
|
},
|
||||||
url : process.env['MONGO_CONNECTION_STRING'] || process.env['MONGO_URL'] || "mongodb://#{process.env['MONGO_HOST'] or '127.0.0.1'}/sharelatex"
|
url : process.env['MONGO_CONNECTION_STRING'] || process.env['MONGO_URL'] || "mongodb://#{process.env['MONGO_HOST'] or '127.0.0.1'}/sharelatex"
|
||||||
|
|
Loading…
Reference in a new issue