settings.defaults.cjs 670 B

12345678910111213141516171819202122232425262728293031323334
  1. const Path = require('path')
  2. module.exports = {
  3. internal: {
  4. spelling: {
  5. port: 3005,
  6. host: process.env.LISTEN_ADDRESS || 'localhost',
  7. },
  8. },
  9. maxRequestsPerWorker:
  10. parseInt(process.env.MAX_REQUESTS_PER_WORKER, 10) || 100 * 1024,
  11. cacheDir: Path.resolve('cache'),
  12. healthCheckUserId: '53c64d2fd68c8d000010bb5f',
  13. ignoredMisspellings: process.env.IGNORED_MISSPELLINGS
  14. ? process.env.IGNORED_MISSPELLINGS.split(',')
  15. : [
  16. 'Overleaf',
  17. 'overleaf',
  18. 'ShareLaTeX',
  19. 'sharelatex',
  20. 'LaTeX',
  21. 'http',
  22. 'https',
  23. 'www',
  24. ],
  25. sentry: {
  26. dsn: process.env.SENTRY_DSN,
  27. },
  28. }