settings.defaults.cjs 854 B

123456789101112131415161718192021222324252627282930313233343536
  1. const http = require('node:http')
  2. const https = require('node:https')
  3. const stream = require('node:stream')
  4. // TODO(24011): remove this after node 22 update
  5. stream.setDefaultHighWaterMark(false, 64 * 1024)
  6. http.globalAgent.keepAlive = false
  7. https.globalAgent.keepAlive = false
  8. module.exports = {
  9. internal: {
  10. chat: {
  11. host: process.env.LISTEN_ADDRESS || '127.0.0.1',
  12. port: 3010,
  13. },
  14. },
  15. apis: {
  16. web: {
  17. url: `http://${process.env.WEB_HOST || '127.0.0.1'}:${
  18. process.env.WEB_PORT || 3000
  19. }`,
  20. user: process.env.WEB_API_USER || 'overleaf',
  21. pass: process.env.WEB_API_PASSWORD || 'password',
  22. },
  23. },
  24. mongo: {
  25. url:
  26. process.env.MONGO_CONNECTION_STRING ||
  27. `mongodb://${process.env.MONGO_HOST || '127.0.0.1'}/sharelatex`,
  28. options: {
  29. monitorCommands: true,
  30. },
  31. },
  32. }