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

29 lines
645 B
JavaScript
Raw Normal View History

module.exports = {
internal: {
chat: {
2020-03-06 16:03:17 +00:00
host: process.env.LISTEN_ADDRESS || 'localhost',
2021-07-13 11:04:48 +00:00
port: 3010,
},
},
2014-08-15 09:50:36 +00:00
apis: {
web: {
2020-08-10 16:01:11 +00:00
url: `http://${process.env.WEB_HOST || 'localhost'}:${
process.env.WEB_PORT || 3000
}`,
2020-03-06 16:03:17 +00:00
user: process.env.WEB_API_USER || 'sharelatex',
2021-07-13 11:04:48 +00:00
pass: process.env.WEB_API_PASSWORD || 'password',
},
},
mongo: {
options: {
useUnifiedTopology:
2021-07-13 11:04:48 +00:00
(process.env.MONGO_USE_UNIFIED_TOPOLOGY || 'true') === 'true',
},
2019-06-27 09:47:27 +00:00
url:
2020-03-06 16:03:17 +00:00
process.env.MONGO_CONNECTION_STRING ||
2021-07-13 11:04:48 +00:00
`mongodb://${process.env.MONGO_HOST || 'localhost'}/sharelatex`,
},
}