mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
* Set defaultHighWaterMark to 16KiB This is already the default in Node 20 * Set defaultHighWaterMark to 64KiB Per https://github.com/overleaf/internal/pull/25522#issuecomment-2872035192 GitOrigin-RevId: 19d731abf683066654027de3a4f9ac0b8916f22c
37 lines
854 B
JavaScript
37 lines
854 B
JavaScript
const http = require('node:http')
|
|
const https = require('node:https')
|
|
const stream = require('node:stream')
|
|
|
|
// TODO(24011): remove this after node 22 update
|
|
stream.setDefaultHighWaterMark(false, 64 * 1024)
|
|
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,
|
|
},
|
|
},
|
|
}
|