overleaf/services/contacts/config/settings.defaults.js

22 lines
461 B
JavaScript
Raw Normal View History

const http = require('http')
http.globalAgent.maxSockets = 300
module.exports = {
internal: {
contacts: {
port: 3036,
2021-07-13 07:04:47 -04:00
host: process.env.LISTEN_ADDRESS || 'localhost',
},
},
mongo: {
options: {
useUnifiedTopology:
2021-07-13 07:04:47 -04:00
(process.env.MONGO_USE_UNIFIED_TOPOLOGY || 'true') === 'true',
},
url:
process.env.MONGO_CONNECTION_STRING ||
2021-07-13 07:04:47 -04:00
`mongodb://${process.env.MONGO_HOST || 'localhost'}/sharelatex`,
},
}