settings.defaults.coffee 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. primary: true
  22. port:"6379"
  23. host:"localhost"
  24. password:""
  25. key_schema:
  26. blockingKey: ({doc_id}) -> "Blocking:#{doc_id}"
  27. docLines: ({doc_id}) -> "doclines:#{doc_id}"
  28. docOps: ({doc_id}) -> "DocOps:#{doc_id}"
  29. docVersion: ({doc_id}) -> "DocVersion:#{doc_id}"
  30. projectKey: ({doc_id}) -> "ProjectId:#{doc_id}"
  31. docsInProject: ({project_id}) -> "DocsIn:#{project_id}"
  32. ranges: ({doc_id}) -> "Ranges:#{doc_id}"
  33. # }, {
  34. # cluster: [{
  35. # port: "7000"
  36. # host: "localhost"
  37. # }]
  38. # key_schema:
  39. # blockingKey: ({doc_id}) -> "Blocking:{#{doc_id}}"
  40. # docLines: ({doc_id}) -> "doclines:{#{doc_id}}"
  41. # docOps: ({doc_id}) -> "DocOps:{#{doc_id}}"
  42. # docVersion: ({doc_id}) -> "DocVersion:{#{doc_id}}"
  43. # projectKey: ({doc_id}) -> "ProjectId:{#{doc_id}}"
  44. # docsInProject: ({project_id}) -> "DocsIn:{#{project_id}}"
  45. # ranges: ({doc_id}) -> "Ranges:{#{doc_id}}"
  46. }]
  47. max_doc_length: 2 * 1024 * 1024 # 2mb
  48. mongo:
  49. url: 'mongodb://127.0.0.1/sharelatex'