2019-07-03 08:41:01 -04:00
|
|
|
const Path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
internal: {
|
|
|
|
spelling: {
|
|
|
|
port: 3005,
|
2021-07-13 07:04:47 -04:00
|
|
|
host: process.env.LISTEN_ADDRESS || 'localhost',
|
|
|
|
},
|
2019-07-03 08:41:01 -04:00
|
|
|
},
|
|
|
|
|
2023-05-08 09:40:37 -04:00
|
|
|
maxRequestsPerWorker:
|
|
|
|
parseInt(process.env.MAX_REQUESTS_PER_WORKER, 10) || 100 * 1024,
|
|
|
|
|
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(',')
|
2020-10-08 09:12:55 -04:00
|
|
|
: [
|
|
|
|
'Overleaf',
|
|
|
|
'overleaf',
|
|
|
|
'ShareLaTeX',
|
|
|
|
'sharelatex',
|
|
|
|
'LaTeX',
|
|
|
|
'http',
|
|
|
|
'https',
|
2021-07-13 07:04:47 -04:00
|
|
|
'www',
|
2020-10-08 09:12:55 -04:00
|
|
|
],
|
2020-10-08 04:36:47 -04:00
|
|
|
|
2019-07-03 08:41:01 -04:00
|
|
|
sentry: {
|
2021-07-13 07:04:47 -04:00
|
|
|
dsn: process.env.SENTRY_DSN,
|
|
|
|
},
|
2019-07-03 08:41:01 -04:00
|
|
|
}
|