overleaf/services/spelling/config/settings.defaults.cjs
Jakob Ackermann a540754f6e Merge pull request #18116 from overleaf/jpa-bulk-replace-localhost
[misc] bulk replace localhost with 127.0.0.1

GitOrigin-RevId: d238f3635302e8ff5500d611108c4d1bef216726
2024-04-26 08:04:39 +00:00

34 lines
670 B
JavaScript

const Path = require('path')
module.exports = {
internal: {
spelling: {
port: 3005,
host: process.env.LISTEN_ADDRESS || '127.0.0.1',
},
},
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,
},
}