overleaf/services/contacts/config/settings.defaults.cjs
Andrew Rumble 11213d85fe Merge pull request #21883 from overleaf/ar-disable-keep-alive-remaining-services
Disable keepAlive in all services

GitOrigin-RevId: 9a3bac37e3fb09ee64b05cfda300dfe8d8672aad
2024-11-15 09:05:52 +00:00

24 lines
506 B
JavaScript

const http = require('node:http')
const https = require('node:https')
http.globalAgent.maxSockets = 300
http.globalAgent.keepAlive = false
https.globalAgent.keepAlive = false
module.exports = {
internal: {
contacts: {
port: 3036,
host: process.env.LISTEN_ADDRESS || '127.0.0.1',
},
},
mongo: {
url:
process.env.MONGO_CONNECTION_STRING ||
`mongodb://${process.env.MONGO_HOST || '127.0.0.1'}/sharelatex`,
options: {
monitorCommands: true,
},
},
}