settings.defaults.cjs 506 B

123456789101112131415161718192021222324
  1. const http = require('node:http')
  2. const https = require('node:https')
  3. http.globalAgent.maxSockets = 300
  4. http.globalAgent.keepAlive = false
  5. https.globalAgent.keepAlive = false
  6. module.exports = {
  7. internal: {
  8. contacts: {
  9. port: 3036,
  10. host: process.env.LISTEN_ADDRESS || '127.0.0.1',
  11. },
  12. },
  13. mongo: {
  14. url:
  15. process.env.MONGO_CONNECTION_STRING ||
  16. `mongodb://${process.env.MONGO_HOST || '127.0.0.1'}/sharelatex`,
  17. options: {
  18. monitorCommands: true,
  19. },
  20. },
  21. }