2014-04-28 11:45:59 -04:00
|
|
|
http = require('http')
|
|
|
|
http.globalAgent.maxSockets = 300
|
|
|
|
|
2016-11-28 11:51:43 -05:00
|
|
|
module.exports = Settings =
|
2014-04-28 11:45:59 -04:00
|
|
|
internal:
|
|
|
|
docstore:
|
|
|
|
port: 3016
|
|
|
|
host: "localhost"
|
|
|
|
|
|
|
|
mongo:
|
|
|
|
url: 'mongodb://127.0.0.1/sharelatex'
|
2015-06-01 17:24:40 -04:00
|
|
|
|
2015-10-16 05:13:54 -04:00
|
|
|
docstore:
|
|
|
|
healthCheck:
|
2016-11-28 11:51:43 -05:00
|
|
|
project_id: ""
|
2015-11-06 07:42:44 -05:00
|
|
|
|
2015-11-09 10:24:21 -05:00
|
|
|
max_doc_length: 2 * 1024 * 1024 # 2mb
|
2016-11-28 11:51:43 -05:00
|
|
|
|
|
|
|
if process.env['AWS_ACCESS_KEY_ID']? and process.env['AWS_SECRET_ACCESS_KEY']? and process.env['AWS_BUCKET']?
|
|
|
|
Settings.docstore.s3 =
|
|
|
|
key: process.env['AWS_ACCESS_KEY_ID']
|
|
|
|
secret: process.env['AWS_SECRET_ACCESS_KEY']
|
|
|
|
bucket: process.env['AWS_BUCKET']
|