2020-02-17 02:38:26 -05:00
|
|
|
const http = require('http')
|
|
|
|
http.globalAgent.maxSockets = 300
|
2015-10-06 11:41:35 -04:00
|
|
|
|
2020-02-17 02:38:25 -05:00
|
|
|
module.exports = {
|
2020-02-17 02:38:26 -05:00
|
|
|
internal: {
|
|
|
|
contacts: {
|
|
|
|
port: 3036,
|
2021-07-13 07:04:47 -04:00
|
|
|
host: process.env.LISTEN_ADDRESS || 'localhost',
|
|
|
|
},
|
2020-02-17 02:38:26 -05:00
|
|
|
},
|
2015-10-06 11:41:35 -04:00
|
|
|
|
2020-02-17 02:38:26 -05:00
|
|
|
mongo: {
|
2020-09-10 05:31:48 -04:00
|
|
|
options: {
|
|
|
|
useUnifiedTopology:
|
2021-07-13 07:04:47 -04:00
|
|
|
(process.env.MONGO_USE_UNIFIED_TOPOLOGY || 'true') === 'true',
|
2020-09-10 05:31:48 -04:00
|
|
|
},
|
2020-02-17 02:38:26 -05:00
|
|
|
url:
|
|
|
|
process.env.MONGO_CONNECTION_STRING ||
|
2021-07-13 07:04:47 -04:00
|
|
|
`mongodb://${process.env.MONGO_HOST || 'localhost'}/sharelatex`,
|
|
|
|
},
|
2020-02-17 02:38:26 -05:00
|
|
|
}
|