mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 16:26:43 -05:00
11213d85fe
Disable keepAlive in all services GitOrigin-RevId: 9a3bac37e3fb09ee64b05cfda300dfe8d8672aad
33 lines
718 B
JavaScript
33 lines
718 B
JavaScript
const http = require('node:http')
|
|
const https = require('node:https')
|
|
|
|
http.globalAgent.keepAlive = false
|
|
https.globalAgent.keepAlive = false
|
|
|
|
module.exports = {
|
|
internal: {
|
|
chat: {
|
|
host: process.env.LISTEN_ADDRESS || '127.0.0.1',
|
|
port: 3010,
|
|
},
|
|
},
|
|
|
|
apis: {
|
|
web: {
|
|
url: `http://${process.env.WEB_HOST || '127.0.0.1'}:${
|
|
process.env.WEB_PORT || 3000
|
|
}`,
|
|
user: process.env.WEB_API_USER || 'overleaf',
|
|
pass: process.env.WEB_API_PASSWORD || 'password',
|
|
},
|
|
},
|
|
|
|
mongo: {
|
|
url:
|
|
process.env.MONGO_CONNECTION_STRING ||
|
|
`mongodb://${process.env.MONGO_HOST || '127.0.0.1'}/sharelatex`,
|
|
options: {
|
|
monitorCommands: true,
|
|
},
|
|
},
|
|
}
|