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

38 lines
No EOL
794 B
CoffeeScript

module.exports =
redis:
realtime:
host: "localhost"
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:
host: "localhost"
port: "6379"
password: ""
key_schema:
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
internal:
realTime:
port: 3026
host: "localhost"
user: "sharelatex"
pass: "password"
apis:
web:
url: "http://localhost:3000"
user: "sharelatex"
pass: "password"
documentupdater:
url: "http://localhost:3003"
security:
sessionSecret: "secret-please-change"
cookieName:"sharelatex.sid"
max_doc_length: 2 * 1024 * 1024 # 2mb