2014-02-12 05:40:42 -05:00
|
|
|
Path = require('path')
|
|
|
|
http = require('http')
|
|
|
|
http.globalAgent.maxSockets = 300
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
internal:
|
|
|
|
documentupdater:
|
|
|
|
port: 3003
|
|
|
|
|
|
|
|
apis:
|
|
|
|
web:
|
|
|
|
url: "http://localhost:3000"
|
|
|
|
user: "sharelatex"
|
|
|
|
pass: "password"
|
2014-02-26 10:56:52 -05:00
|
|
|
trackchanges:
|
2015-05-28 11:43:58 -04:00
|
|
|
url: "http://localhost:3015"
|
2014-02-12 05:40:42 -05:00
|
|
|
|
|
|
|
redis:
|
|
|
|
web:
|
|
|
|
port:"6379"
|
|
|
|
host:"localhost"
|
|
|
|
password:""
|
2016-06-23 13:00:03 -04:00
|
|
|
documentupdater: [{
|
|
|
|
primary: true
|
|
|
|
port:"6379"
|
|
|
|
host:"localhost"
|
|
|
|
password:""
|
|
|
|
key_schema:
|
|
|
|
blockingKey: ({doc_id}) -> "Blocking:#{doc_id}"
|
|
|
|
docLines: ({doc_id}) -> "doclines:#{doc_id}"
|
|
|
|
docOps: ({doc_id}) -> "DocOps:#{doc_id}"
|
|
|
|
docVersion: ({doc_id}) -> "DocVersion:#{doc_id}"
|
|
|
|
projectKey: ({doc_id}) -> "ProjectId:#{doc_id}"
|
|
|
|
docsInProject: ({project_id}) -> "DocsIn:#{project_id}"
|
2016-07-07 11:29:01 -04:00
|
|
|
}, {
|
|
|
|
cluster: [{
|
|
|
|
port: "7000"
|
|
|
|
host: "localhost"
|
|
|
|
}]
|
|
|
|
key_schema:
|
|
|
|
blockingKey: ({doc_id}) -> "Blocking:{#{doc_id}}"
|
|
|
|
docLines: ({doc_id}) -> "doclines:{#{doc_id}}"
|
|
|
|
docOps: ({doc_id}) -> "DocOps:{#{doc_id}}"
|
|
|
|
docVersion: ({doc_id}) -> "DocVersion:{#{doc_id}}"
|
|
|
|
projectKey: ({doc_id}) -> "ProjectId:{#{doc_id}}"
|
|
|
|
docsInProject: ({project_id}) -> "DocsIn:{#{project_id}}"
|
2016-06-23 13:00:03 -04:00
|
|
|
}]
|
2015-11-06 07:52:03 -05:00
|
|
|
|
|
|
|
max_doc_length: 2 * 1024 * 1024 # 2mb
|
2014-02-12 05:40:42 -05:00
|
|
|
|
|
|
|
mongo:
|
|
|
|
url: 'mongodb://127.0.0.1/sharelatex'
|