mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
43 lines
No EOL
1.3 KiB
CoffeeScript
43 lines
No EOL
1.3 KiB
CoffeeScript
module.exports =
|
|
redis:
|
|
realtime:
|
|
host: process.env['REDIS_HOST'] or "localhost"
|
|
port: process.env['REDIS_PORT'] or "6379"
|
|
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:
|
|
host: process.env['REDIS_HOST'] or "localhost"
|
|
port: process.env['REDIS_PORT'] or "6379"
|
|
password: process.env["REDIS_PASSWORD"] or ""
|
|
key_schema:
|
|
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
|
|
|
|
websessions:
|
|
host: process.env['REDIS_HOST'] or "localhost"
|
|
port: process.env['REDIS_PORT'] or "6379"
|
|
password: process.env["REDIS_PASSWORD"] or ""
|
|
|
|
internal:
|
|
realTime:
|
|
port: 3026
|
|
host: process.env['LISTEN_ADDRESS'] or "localhost"
|
|
user: "sharelatex"
|
|
pass: "password"
|
|
|
|
apis:
|
|
web:
|
|
url: "http://#{process.env['WEB_API_HOST'] or process.env['WEB_HOST'] or "localhost"}:3000"
|
|
user: "sharelatex"
|
|
pass: "password"
|
|
documentupdater:
|
|
url: "http://#{process.env['DOCUMENT_UPDATER_HOST'] or process.env['DOCUPDATER_HOST'] or "localhost"}:3003"
|
|
|
|
security:
|
|
sessionSecret: process.env['SESSION_SECRET'] or "secret-please-change"
|
|
|
|
cookieName: process.env['COOKIE_NAME'] or "sharelatex.sid"
|
|
|
|
max_doc_length: 2 * 1024 * 1024 # 2mb |