overleaf/services/real-time/config/settings.defaults.coffee

43 lines
1.3 KiB
CoffeeScript
Raw Normal View History

module.exports =
redis:
realtime:
2018-10-19 14:28:05 -04:00
host: process.env['REDIS_HOST'] or "localhost"
2018-10-03 10:01:31 -04:00
port: process.env['REDIS_PORT'] or "6379"
2018-10-03 09:20:20 -04:00
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
clientsInProject: ({project_id}) -> "clients_in_project:#{project_id}"
connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}"
documentupdater:
2018-10-19 14:28:05 -04:00
host: process.env['REDIS_HOST'] or "localhost"
2018-10-03 10:01:31 -04:00
port: process.env['REDIS_PORT'] or "6379"
2018-10-03 09:20:20 -04:00
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
2017-05-10 10:52:35 -04:00
websessions:
2018-10-19 14:28:05 -04:00
host: process.env['REDIS_HOST'] or "localhost"
2018-10-03 10:01:31 -04:00
port: process.env['REDIS_PORT'] or "6379"
2018-10-03 09:20:20 -04:00
password: process.env["REDIS_PASSWORD"] or ""
2017-05-10 10:52:35 -04:00
internal:
realTime:
port: 3026
host: process.env['LISTEN_ADDRESS'] or "localhost"
user: "sharelatex"
pass: "password"
2014-11-10 06:27:08 -05:00
apis:
web:
2018-10-19 14:28:05 -04:00
url: "http://#{process.env['WEB_API_HOST'] or process.env['WEB_HOST'] or "localhost"}:3000"
2014-11-17 09:35:07 -05:00
user: "sharelatex"
pass: "password"
2014-11-12 10:54:55 -05:00
documentupdater:
2018-10-19 14:42:33 -04:00
url: "http://#{process.env['DOCUMENT_UPDATER_HOST'] or process.env['DOCUPDATER_HOST'] or "localhost"}:3003"
2014-11-10 06:27:08 -05:00
security:
2018-12-03 09:05:03 -05:00
sessionSecret: process.env['SESSION_SECRET'] or "secret-please-change"
2018-12-03 09:05:03 -05:00
cookieName: process.env['COOKIE_NAME'] or "sharelatex.sid"
2015-12-01 06:05:49 -05:00
max_doc_length: 2 * 1024 * 1024 # 2mb