2024-11-14 09:44:58 +00:00
|
|
|
const http = require('node:http')
|
2024-11-14 16:10:37 +00:00
|
|
|
const https = require('node:https')
|
|
|
|
|
2020-02-17 07:38:26 +00:00
|
|
|
http.globalAgent.maxSockets = 300
|
2024-11-14 09:44:58 +00:00
|
|
|
http.globalAgent.keepAlive = false
|
2024-11-14 16:10:37 +00:00
|
|
|
https.globalAgent.keepAlive = false
|
2015-10-06 15:41:35 +00:00
|
|
|
|
2020-02-17 07:38:25 +00:00
|
|
|
module.exports = {
|
2020-02-17 07:38:26 +00:00
|
|
|
internal: {
|
|
|
|
contacts: {
|
|
|
|
port: 3036,
|
2024-04-25 12:56:00 +00:00
|
|
|
host: process.env.LISTEN_ADDRESS || '127.0.0.1',
|
2021-07-13 11:04:47 +00:00
|
|
|
},
|
2020-02-17 07:38:26 +00:00
|
|
|
},
|
2015-10-06 15:41:35 +00:00
|
|
|
|
2020-02-17 07:38:26 +00:00
|
|
|
mongo: {
|
|
|
|
url:
|
|
|
|
process.env.MONGO_CONNECTION_STRING ||
|
2024-04-25 12:56:00 +00:00
|
|
|
`mongodb://${process.env.MONGO_HOST || '127.0.0.1'}/sharelatex`,
|
2024-02-22 11:03:27 +00:00
|
|
|
options: {
|
|
|
|
monitorCommands: true,
|
|
|
|
},
|
2021-07-13 11:04:47 +00:00
|
|
|
},
|
2020-02-17 07:38:26 +00:00
|
|
|
}
|