settings.defaults.coffee 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Path = require('path')
  2. http = require('http')
  3. http.globalAgent.maxSockets = 300
  4. module.exports =
  5. internal:
  6. documentupdater:
  7. port: 3003
  8. apis:
  9. web:
  10. url: "http://localhost:3000"
  11. user: "sharelatex"
  12. pass: "password"
  13. trackchanges:
  14. url: "http://localhost:3015"
  15. redis:
  16. web:
  17. port:"6379"
  18. host:"localhost"
  19. password:""
  20. documentupdater:
  21. port:"6379"
  22. host:"localhost"
  23. password:""
  24. key_schema:
  25. blockingKey: ({doc_id}) -> "Blocking:#{doc_id}"
  26. docLines: ({doc_id}) -> "doclines:#{doc_id}"
  27. docOps: ({doc_id}) -> "DocOps:#{doc_id}"
  28. docVersion: ({doc_id}) -> "DocVersion:#{doc_id}"
  29. projectKey: ({doc_id}) -> "ProjectId:#{doc_id}"
  30. pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
  31. docsInProject: ({project_id}) -> "DocsIn:#{project_id}"
  32. # To use Redis cluster, configure the backend as follows:
  33. # [{
  34. # primary: true
  35. # cluster: [{
  36. # port: "7000"
  37. # host: "localhost"
  38. # }]
  39. # key_schema:
  40. # blockingKey: ({doc_id}) -> "Blocking:{#{doc_id}}"
  41. # docLines: ({doc_id}) -> "doclines:{#{doc_id}}"
  42. # docOps: ({doc_id}) -> "DocOps:{#{doc_id}}"
  43. # docVersion: ({doc_id}) -> "DocVersion:{#{doc_id}}"
  44. # projectKey: ({doc_id}) -> "ProjectId:{#{doc_id}}"
  45. # pendingUpdates: ({doc_id}) -> "PendingUpdates:{#{doc_id}}"
  46. # docsInProject: ({project_id}) -> "DocsIn:{#{project_id}}"
  47. # }]
  48. max_doc_length: 2 * 1024 * 1024 # 2mb
  49. mongo:
  50. url: 'mongodb://127.0.0.1/sharelatex'