settings.test.coffee 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. v1Api =
  2. url: "http://#{process.env['V1_HOST'] or 'localhost'}:5000"
  3. module.exports =
  4. enableSubscriptions: true
  5. # for registration via SL, set enableLegacyRegistration to true
  6. # for registration via Overleaf v1, set enableLegacyLogin to true
  7. # Currently, acceptance tests require enableLegacyRegistration.
  8. enableLegacyRegistration: true
  9. features: features =
  10. v1_free:
  11. collaborators: 1
  12. dropbox: false
  13. versioning: false
  14. github: true
  15. templates: false
  16. references: false
  17. referencesSearch: false
  18. mendeley: true
  19. compileTimeout: 60
  20. compileGroup: "standard"
  21. trackChanges: false
  22. personal:
  23. collaborators: 1
  24. dropbox: false
  25. versioning: false
  26. github: false
  27. templates: false
  28. references: false
  29. referencesSearch: false
  30. mendeley: false
  31. compileTimeout: 60
  32. compileGroup: "standard"
  33. trackChanges: false
  34. collaborator:
  35. collaborators: 10
  36. dropbox: true
  37. versioning: true
  38. github: true
  39. templates: true
  40. references: true
  41. referencesSearch: true
  42. mendeley: true
  43. compileTimeout: 180
  44. compileGroup: "priority"
  45. trackChanges: true
  46. professional:
  47. collaborators: -1
  48. dropbox: true
  49. versioning: true
  50. github: true
  51. templates: true
  52. references: true
  53. referencesSearch: true
  54. mendeley: true
  55. compileTimeout: 180
  56. compileGroup: "priority"
  57. trackChanges: true
  58. defaultFeatures: features.personal
  59. defaultPlanCode: 'personal'
  60. institutionPlanCode: 'professional'
  61. plans: plans = [{
  62. planCode: "v1_free"
  63. name: "V1 Free"
  64. price: 0
  65. features: features.v1_free
  66. },{
  67. planCode: "personal"
  68. name: "Personal"
  69. price: 0
  70. features: features.personal
  71. },{
  72. planCode: "collaborator"
  73. name: "Collaborator"
  74. price: 1500
  75. features: features.collaborator
  76. },{
  77. planCode: "professional"
  78. name: "Professional"
  79. price: 3000
  80. features: features.professional
  81. }]
  82. bonus_features:
  83. 1:
  84. collaborators: 2
  85. dropbox: false
  86. versioning: false
  87. 3:
  88. collaborators: 4
  89. dropbox: false
  90. versioning: false
  91. 6:
  92. collaborators: 4
  93. dropbox: true
  94. versioning: true
  95. 9:
  96. collaborators: -1
  97. dropbox: true
  98. versioning: true
  99. proxyUrls:
  100. '/institutions/list': { baseUrl: v1Api.url, path: '/universities/list' }
  101. '/institutions/list/:id':
  102. baseUrl: v1Api.url
  103. path: (params) -> "/universities/list/#{params.id}"
  104. '/institutions/domains': { baseUrl: v1Api.url, path: '/university/domains' }
  105. '/proxy/missing/baseUrl': path: '/foo/bar'
  106. '/proxy/get_and_post': {
  107. methods: ['get', 'post'],
  108. path: '/destination/get_and_post'
  109. }
  110. overleaf:
  111. host: "http://overleaf.test:5000"
  112. redirects:
  113. '/redirect/one': '/destination/one',
  114. '/redirect/get_and_post': {
  115. methods: ['get', 'post'],
  116. url: '/destination/get_and_post'
  117. },
  118. '/redirect/base_url': {
  119. baseUrl: 'https://example.com'
  120. url: '/destination/base_url'
  121. },
  122. '/redirect/params/:id': {
  123. url: (params) -> "/destination/#{params.id}/params"
  124. },
  125. '/redirect/qs': '/destination/qs'
  126. '/docs': {
  127. authWithV1: true
  128. url: '/docs'
  129. }