2015-08-06 18:46:44 +00:00
|
|
|
Path = require('path')
|
2018-10-04 10:14:15 +00:00
|
|
|
TMP_DIR = process.env["TMP_PATH"] or Path.resolve(Path.join(__dirname, "../../", "tmp"))
|
2015-08-06 18:46:44 +00:00
|
|
|
|
2014-02-26 16:17:15 +00:00
|
|
|
module.exports =
|
|
|
|
mongo:
|
2018-10-04 09:34:44 +00:00
|
|
|
url: process.env['MONGO_CONNECTION_STRING'] or "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"
|
|
|
|
|
2014-02-26 16:17:15 +00:00
|
|
|
internal:
|
|
|
|
trackchanges:
|
2014-03-03 13:31:10 +00:00
|
|
|
port: 3015
|
2017-12-29 08:18:04 +00:00
|
|
|
host: process.env["LISTEN_ADDRESS"] or "localhost"
|
2014-03-04 15:27:03 +00:00
|
|
|
apis:
|
|
|
|
documentupdater:
|
2018-12-05 16:49:15 +00:00
|
|
|
url: "http://#{process.env["DOCUMENT_UPDATER_HOST"] or process.env["DOCUPDATER_HOST"] or "localhost"}:3003"
|
2014-06-06 12:00:28 +00:00
|
|
|
docstore:
|
2017-12-29 08:18:04 +00:00
|
|
|
url: "http://#{process.env["DOCSTORE_HOST"] or "localhost"}:3016"
|
2014-03-06 18:04:00 +00:00
|
|
|
web:
|
2019-07-29 10:28:27 +00: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 10:08:32 +00:00
|
|
|
user: process.env['WEB_API_USER'] or "sharelatex"
|
|
|
|
pass: process.env['WEB_API_PASSWORD'] or "password"
|
2015-02-26 11:35:14 +00:00
|
|
|
redis:
|
2017-05-15 09:34:24 +00:00
|
|
|
lock:
|
2017-12-29 08:18:04 +00:00
|
|
|
host: process.env["REDIS_HOST"] or "localhost"
|
2018-10-04 09:34:44 +00:00
|
|
|
port: process.env['REDIS_PORT'] or 6379
|
|
|
|
password: process.env["REDIS_PASSWORD"] or ""
|
2017-05-15 09:34:24 +00:00
|
|
|
key_schema:
|
2019-02-01 19:42:14 +00:00
|
|
|
historyLock: ({doc_id}) -> "HistoryLock:{#{doc_id}}"
|
|
|
|
historyIndexLock: ({project_id}) -> "HistoryIndexLock:{#{project_id}}"
|
2017-04-24 13:23:32 +00:00
|
|
|
history:
|
2017-12-29 08:18:04 +00:00
|
|
|
host: process.env["REDIS_HOST"] or "localhost"
|
2018-10-04 09:34:44 +00:00
|
|
|
port: process.env['REDIS_PORT'] or 6379
|
|
|
|
password: process.env["REDIS_PASSWORD"] or ""
|
2017-04-24 13:23:32 +00:00
|
|
|
key_schema:
|
2019-02-01 19:42:14 +00:00
|
|
|
uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}"
|
|
|
|
docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}"
|
2015-08-06 13:00:09 +00:00
|
|
|
|
2016-03-09 13:28:22 +00:00
|
|
|
trackchanges:
|
2015-08-06 20:09:36 +00:00
|
|
|
s3:
|
2018-05-24 11:02:27 +00:00
|
|
|
key: process.env['AWS_ACCESS_KEY_ID']
|
|
|
|
secret: process.env['AWS_SECRET_ACCESS_KEY']
|
2020-01-24 17:31:56 +00:00
|
|
|
endpoint: process.env['AWS_S3_ENDPOINT']
|
|
|
|
pathStyle: process.env['AWS_S3_PATH_STYLE'] == 'true'
|
2016-03-09 13:28:22 +00:00
|
|
|
stores:
|
2018-05-24 11:02:27 +00:00
|
|
|
doc_history: process.env['AWS_BUCKET']
|
2019-10-01 12:25:02 +00:00
|
|
|
continueOnError: process.env['TRACK_CHANGES_CONTINUE_ON_ERROR'] or false
|
2018-05-24 11:02:27 +00:00
|
|
|
|
2015-08-06 18:46:44 +00:00
|
|
|
path:
|
2015-08-06 20:09:36 +00:00
|
|
|
dumpFolder: Path.join(TMP_DIR, "dumpFolder")
|
2019-03-05 17:10:18 +00:00
|
|
|
|
|
|
|
sentry:
|
|
|
|
dsn: process.env.SENTRY_DSN
|