overleaf/services/track-changes/config/settings.defaults.coffee

46 lines
1.2 KiB
CoffeeScript
Raw Normal View History

2015-08-06 14:46:44 -04:00
Path = require('path')
TMP_DIR = Path.resolve(Path.join(__dirname, "../../", "tmp"))
2014-02-26 11:17:15 -05:00
module.exports =
mongo:
url: "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"
2014-02-26 11:17:15 -05:00
internal:
trackchanges:
2014-03-03 08:31:10 -05:00
port: 3015
host: process.env["LISTEN_ADDRESS"] or "localhost"
apis:
documentupdater:
url: "http://#{process.env["DOCUPDATER_HOST"] or "localhost"}:3003"
2014-06-06 08:00:28 -04:00
docstore:
url: "http://#{process.env["DOCSTORE_HOST"] or "localhost"}:3016"
web:
url: "http://#{process.env["WEB_HOST"] or "localhost"}:#{process.env['WEB_PORT'] or 3000}"
user: "sharelatex"
pass: "password"
2015-02-26 06:35:14 -05:00
redis:
lock:
host: process.env["REDIS_HOST"] or "localhost"
2015-02-26 06:35:14 -05:00
port: 6379
pass: ""
key_schema:
historyLock: ({doc_id}) -> "HistoryLock:#{doc_id}"
historyIndexLock: ({project_id}) -> "HistoryIndexLock:#{project_id}"
history:
port: "6379"
host: process.env["REDIS_HOST"] or "localhost"
password:""
key_schema:
uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:#{doc_id}"
docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:#{project_id}"
2015-08-06 09:00:09 -04:00
trackchanges:
2015-08-06 16:09:36 -04:00
s3:
key: ""
secret: ""
stores:
doc_history: ""
2015-08-06 14:46:44 -04:00
path:
2015-08-06 16:09:36 -04:00
dumpFolder: Path.join(TMP_DIR, "dumpFolder")