mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
480148bf1c
[spelling] make ASpellWorkerPool.MAX_REQUESTS configurable via env var GitOrigin-RevId: babedafb16b05f53ba0fefc73250bcf623ec4f89
34 lines
670 B
JavaScript
34 lines
670 B
JavaScript
const Path = require('path')
|
|
|
|
module.exports = {
|
|
internal: {
|
|
spelling: {
|
|
port: 3005,
|
|
host: process.env.LISTEN_ADDRESS || 'localhost',
|
|
},
|
|
},
|
|
|
|
maxRequestsPerWorker:
|
|
parseInt(process.env.MAX_REQUESTS_PER_WORKER, 10) || 100 * 1024,
|
|
|
|
cacheDir: Path.resolve('cache'),
|
|
|
|
healthCheckUserId: '53c64d2fd68c8d000010bb5f',
|
|
|
|
ignoredMisspellings: process.env.IGNORED_MISSPELLINGS
|
|
? process.env.IGNORED_MISSPELLINGS.split(',')
|
|
: [
|
|
'Overleaf',
|
|
'overleaf',
|
|
'ShareLaTeX',
|
|
'sharelatex',
|
|
'LaTeX',
|
|
'http',
|
|
'https',
|
|
'www',
|
|
],
|
|
|
|
sentry: {
|
|
dsn: process.env.SENTRY_DSN,
|
|
},
|
|
}
|