settings.defaults.cjs 718 B

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