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

42 lines
837 B
JavaScript
Raw Normal View History

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