overleaf/services/spelling/config/settings.defaults.cjs
Jakob Ackermann 480148bf1c Merge pull request #12993 from overleaf/jpa-configurable-request-threshold
[spelling] make ASpellWorkerPool.MAX_REQUESTS configurable via env var

GitOrigin-RevId: babedafb16b05f53ba0fefc73250bcf623ec4f89
2023-05-09 08:04:52 +00:00

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,
},
}