2019-07-03 08:41:01 -04:00
|
|
|
const Path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
internal: {
|
|
|
|
spelling: {
|
|
|
|
port: 3005,
|
2020-06-03 04:52:36 -04:00
|
|
|
host: process.env.LISTEN_ADDRESS || 'localhost'
|
2019-07-03 08:41:01 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mongo: {
|
2020-09-10 05:57:29 -04:00
|
|
|
options: {
|
|
|
|
useUnifiedTopology:
|
|
|
|
(process.env.MONGO_USE_UNIFIED_TOPOLOGY || 'true') === 'true'
|
|
|
|
},
|
2019-07-03 08:41:01 -04:00
|
|
|
url:
|
2020-06-03 04:52:36 -04:00
|
|
|
process.env.MONGO_CONNECTION_STRING ||
|
|
|
|
`mongodb://${process.env.MONGO_HOST || 'localhost'}/sharelatex`
|
2019-07-03 08:41:01 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
cacheDir: Path.resolve('cache'),
|
|
|
|
|
|
|
|
healthCheckUserId: '53c64d2fd68c8d000010bb5f',
|
|
|
|
|
2020-10-08 04:36:47 -04:00
|
|
|
ignoredMisspellings: process.env.IGNORED_MISSPELLINGS
|
|
|
|
? process.env.IGNORED_MISSPELLINGS.split(',')
|
|
|
|
: ['ShareLaTeX', 'sharelatex', 'LaTeX', 'http', 'https', 'www'],
|
|
|
|
|
2019-07-03 08:41:01 -04:00
|
|
|
sentry: {
|
|
|
|
dsn: process.env.SENTRY_DSN
|
|
|
|
}
|
|
|
|
}
|