settings.defaults.cjs 642 B

123456789101112131415161718192021222324252627
  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.maxSockets = 300
  7. http.globalAgent.keepAlive = false
  8. https.globalAgent.keepAlive = false
  9. module.exports = {
  10. internal: {
  11. contacts: {
  12. port: 3036,
  13. host: process.env.LISTEN_ADDRESS || '127.0.0.1',
  14. },
  15. },
  16. mongo: {
  17. url:
  18. process.env.MONGO_CONNECTION_STRING ||
  19. `mongodb://${process.env.MONGO_HOST || '127.0.0.1'}/sharelatex`,
  20. options: {
  21. monitorCommands: true,
  22. },
  23. },
  24. }