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

52 lines
1.9 KiB
CoffeeScript
Raw Normal View History

2015-08-06 14:46:44 -04:00
Path = require('path')
2018-10-04 06:14:15 -04:00
TMP_DIR = process.env["TMP_PATH"] or Path.resolve(Path.join(__dirname, "../../", "tmp"))
2015-08-06 14:46:44 -04:00
2014-02-26 11:17:15 -05:00
module.exports =
mongo:
url: process.env['MONGO_CONNECTION_STRING'] or "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["DOCUMENT_UPDATER_HOST"] or 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:
2019-07-29 06:28:27 -04:00
url: "http://#{process.env['WEB_API_HOST'] or process.env['WEB_HOST'] or "localhost"}:#{process.env['WEB_API_PORT'] or process.env['WEB_PORT'] or 3000}"
2019-09-28 06:08:32 -04:00
user: process.env['WEB_API_USER'] or "sharelatex"
pass: process.env['WEB_API_PASSWORD'] or "password"
2015-02-26 06:35:14 -05:00
redis:
lock:
host: process.env["REDIS_HOST"] or "localhost"
port: process.env['REDIS_PORT'] or 6379
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
2019-02-01 14:42:14 -05:00
historyLock: ({doc_id}) -> "HistoryLock:{#{doc_id}}"
historyIndexLock: ({project_id}) -> "HistoryIndexLock:{#{project_id}}"
history:
host: process.env["REDIS_HOST"] or "localhost"
port: process.env['REDIS_PORT'] or 6379
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
2019-02-01 14:42:14 -05:00
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: process.env['AWS_ACCESS_KEY_ID']
secret: process.env['AWS_SECRET_ACCESS_KEY']
endpoint: process.env['AWS_S3_ENDPOINT']
pathStyle: process.env['AWS_S3_PATH_STYLE'] == 'true'
stores:
doc_history: process.env['AWS_BUCKET']
2019-10-01 08:25:02 -04:00
continueOnError: process.env['TRACK_CHANGES_CONTINUE_ON_ERROR'] or false
2015-08-06 14:46:44 -04:00
path:
2015-08-06 16:09:36 -04:00
dumpFolder: Path.join(TMP_DIR, "dumpFolder")
2019-03-05 12:10:18 -05:00
sentry:
dsn: process.env.SENTRY_DSN