overleaf/services/notifications/config/settings.defaults.js
Jakob Ackermann 3626243692 [misc] mongodb: use the new db connector by default
mongojs was enabling it by default as well.
2020-09-10 10:53:08 +01:00

18 lines
397 B
JavaScript

module.exports = {
internal: {
notifications: {
port: 3042,
host: process.env.LISTEN_ADDRESS || 'localhost'
}
},
mongo: {
options: {
useUnifiedTopology:
(process.env.MONGO_USE_UNIFIED_TOPOLOGY || 'true') === 'true'
},
url:
process.env.MONGO_CONNECTION_STRING ||
`mongodb://${process.env.MONGO_HOST || 'localhost'}/sharelatex`
}
}