2014-11-07 17:38:12 +00:00
|
|
|
module.exports =
|
|
|
|
redis:
|
2017-05-02 14:51:17 +00:00
|
|
|
realtime:
|
2017-12-29 08:15:32 +00:00
|
|
|
host: process.env['REDIS_HOST'] or "localhost"
|
2017-05-02 14:51:17 +00:00
|
|
|
port: "6379"
|
|
|
|
password: ""
|
|
|
|
key_schema:
|
|
|
|
clientsInProject: ({project_id}) -> "clients_in_project:#{project_id}"
|
|
|
|
connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}"
|
|
|
|
|
|
|
|
documentupdater:
|
2017-12-29 08:15:32 +00:00
|
|
|
host: process.env['REDIS_HOST'] or "localhost"
|
2014-11-07 17:38:12 +00:00
|
|
|
port: "6379"
|
|
|
|
password: ""
|
2017-05-02 14:51:17 +00:00
|
|
|
key_schema:
|
|
|
|
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
|
2017-05-10 14:52:35 +00:00
|
|
|
|
|
|
|
websessions:
|
2017-12-29 08:15:32 +00:00
|
|
|
host: process.env['REDIS_HOST'] or "localhost"
|
2017-05-10 14:52:35 +00:00
|
|
|
port: "6379"
|
|
|
|
password: ""
|
|
|
|
|
2014-11-07 17:38:12 +00:00
|
|
|
internal:
|
|
|
|
realTime:
|
|
|
|
port: 3026
|
2017-12-29 08:15:32 +00:00
|
|
|
host: process.env['LISTEN_ADDRESS'] or "localhost"
|
2015-03-03 17:15:19 +00:00
|
|
|
user: "sharelatex"
|
|
|
|
pass: "password"
|
2014-11-07 17:38:12 +00:00
|
|
|
|
2014-11-10 11:27:08 +00:00
|
|
|
apis:
|
|
|
|
web:
|
2018-10-09 10:53:49 +00:00
|
|
|
url: "http://#{process.env['WEB_HOST'] or "localhost"}:#{process.env['WEB_PORT'] or 3000}"
|
2014-11-17 14:35:07 +00:00
|
|
|
user: "sharelatex"
|
|
|
|
pass: "password"
|
2014-11-12 15:54:55 +00:00
|
|
|
documentupdater:
|
2017-12-29 08:15:32 +00:00
|
|
|
url: "http://#{process.env['DOCUPDATER_HOST'] or "localhost"}:3003"
|
2014-11-10 11:27:08 +00:00
|
|
|
|
2014-11-07 17:38:12 +00:00
|
|
|
security:
|
|
|
|
sessionSecret: "secret-please-change"
|
|
|
|
|
2017-12-29 08:15:32 +00:00
|
|
|
cookieName: "sharelatex.sid"
|
2015-12-01 11:05:49 +00:00
|
|
|
|
|
|
|
max_doc_length: 2 * 1024 * 1024 # 2mb
|