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"
|
2017-09-29 07:44:36 -04:00
|
|
|
project_history:
|
2017-10-05 10:14:35 -04:00
|
|
|
enabled: process.env.SHARELATEX_ENABLE_PROJECT_HISTORY == 'true'
|
2017-09-29 07:44:36 -04:00
|
|
|
url: "http://localhost:3054"
|
2014-02-12 05:40:42 -05:00
|
|
|
|
|
|
|
redis:
|
2017-05-02 10:38:33 -04:00
|
|
|
realtime:
|
2014-02-12 05:40:42 -05:00
|
|
|
port:"6379"
|
|
|
|
host:"localhost"
|
|
|
|
password:""
|
2017-04-13 12:00:42 -04:00
|
|
|
key_schema:
|
|
|
|
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
|
2017-05-03 11:27:32 -04:00
|
|
|
# cluster: [{
|
|
|
|
# port: "7000"
|
|
|
|
# host: "localhost"
|
|
|
|
# }]
|
|
|
|
# key_schema:
|
|
|
|
# pendingUpdates: ({doc_id}) -> "PendingUpdates:{#{doc_id}}"
|
2017-04-12 09:53:03 -04:00
|
|
|
documentupdater:
|
|
|
|
port: "6379"
|
|
|
|
host: "localhost"
|
|
|
|
password: ""
|
2016-06-23 13:00:03 -04:00
|
|
|
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}"
|
2017-02-14 11:11:43 -05:00
|
|
|
docHash: ({doc_id}) -> "DocHash:#{doc_id}"
|
2016-06-23 13:00:03 -04:00
|
|
|
projectKey: ({doc_id}) -> "ProjectId:#{doc_id}"
|
|
|
|
docsInProject: ({project_id}) -> "DocsIn:#{project_id}"
|
2016-12-08 07:31:43 -05:00
|
|
|
ranges: ({doc_id}) -> "Ranges:#{doc_id}"
|
2017-09-29 05:54:48 -04:00
|
|
|
pathname: ({doc_id}) -> "Pathname:#{doc_id}"
|
2017-08-09 11:45:08 -04:00
|
|
|
projectState: ({project_id}) -> "ProjectState:#{project_id}"
|
2017-10-06 07:23:23 -04:00
|
|
|
unflushedTime: ({doc_id}) -> "UnflushedTime:#{doc_id}"
|
2017-04-12 09:53:03 -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}}"
|
|
|
|
# docHash: ({doc_id}) -> "DocHash:{#{doc_id}}"
|
|
|
|
# projectKey: ({doc_id}) -> "ProjectId:{#{doc_id}}"
|
|
|
|
# docsInProject: ({project_id}) -> "DocsIn:{#{project_id}}"
|
|
|
|
# ranges: ({doc_id}) -> "Ranges:{#{doc_id}}"
|
2017-08-09 11:45:08 -04:00
|
|
|
# projectState: ({project_id}) -> "ProjectState:{#{project_id}}"
|
2017-05-03 11:27:32 -04:00
|
|
|
history:
|
|
|
|
port:"6379"
|
|
|
|
host:"localhost"
|
|
|
|
password:""
|
|
|
|
key_schema:
|
|
|
|
uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:#{doc_id}"
|
|
|
|
docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:#{project_id}"
|
2017-09-29 07:44:36 -04:00
|
|
|
|
|
|
|
project_history:
|
|
|
|
key_schema:
|
|
|
|
projectHistoryOps: ({project_id}) -> "ProjectHistory:Ops:#{project_id}"
|
2017-05-03 11:27:32 -04:00
|
|
|
# cluster: [{
|
|
|
|
# port: "7000"
|
|
|
|
# host: "localhost"
|
|
|
|
# }]
|
|
|
|
# key_schema:
|
|
|
|
# uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}"
|
|
|
|
# docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}"
|
|
|
|
lock:
|
|
|
|
port:"6379"
|
|
|
|
host:"localhost"
|
|
|
|
password:""
|
|
|
|
key_schema:
|
|
|
|
blockingKey: ({doc_id}) -> "Blocking:#{doc_id}"
|
|
|
|
# cluster: [{
|
|
|
|
# port: "7000"
|
|
|
|
# host: "localhost"
|
|
|
|
# }]
|
|
|
|
# key_schema:
|
|
|
|
# blockingKey: ({doc_id}) -> "Blocking:{#{doc_id}}"
|
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'
|