settings.test.coffee 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. v1Api =
  2. url: "http://localhost:5000"
  3. user: 'overleaf'
  4. pass: 'password'
  5. module.exports =
  6. enableSubscriptions: true
  7. apis:
  8. v1:
  9. url: v1Api.url
  10. user: v1Api.user
  11. pass: v1Api.pass
  12. recurly:
  13. # Set up our own mock recurly server
  14. url: 'http://localhost:6034'
  15. subdomain: 'test'
  16. # for registration via SL, set enableLegacyRegistration to true
  17. # for registration via Overleaf v1, set enableLegacyLogin to true
  18. # Currently, acceptance tests require enableLegacyRegistration.
  19. enableLegacyRegistration: true
  20. features: features =
  21. v1_free:
  22. collaborators: 1
  23. dropbox: false
  24. versioning: false
  25. github: true
  26. gitBridge: true
  27. templates: false
  28. references: false
  29. referencesSearch: false
  30. mendeley: true
  31. compileTimeout: 60
  32. compileGroup: "standard"
  33. trackChanges: false
  34. personal:
  35. collaborators: 1
  36. dropbox: false
  37. versioning: false
  38. github: false
  39. gitBridge: false
  40. templates: false
  41. references: false
  42. referencesSearch: false
  43. mendeley: false
  44. compileTimeout: 60
  45. compileGroup: "standard"
  46. trackChanges: false
  47. collaborator:
  48. collaborators: 10
  49. dropbox: true
  50. versioning: true
  51. github: true
  52. gitBridge: true
  53. templates: true
  54. references: true
  55. referencesSearch: true
  56. mendeley: true
  57. compileTimeout: 180
  58. compileGroup: "priority"
  59. trackChanges: true
  60. professional:
  61. collaborators: -1
  62. dropbox: true
  63. versioning: true
  64. github: true
  65. gitBridge: true
  66. templates: true
  67. references: true
  68. referencesSearch: true
  69. mendeley: true
  70. compileTimeout: 180
  71. compileGroup: "priority"
  72. trackChanges: true
  73. defaultFeatures: features.personal
  74. defaultPlanCode: 'personal'
  75. institutionPlanCode: 'professional'
  76. plans: plans = [{
  77. planCode: "v1_free"
  78. name: "V1 Free"
  79. price: 0
  80. features: features.v1_free
  81. },{
  82. planCode: "personal"
  83. name: "Personal"
  84. price: 0
  85. features: features.personal
  86. },{
  87. planCode: "collaborator"
  88. name: "Collaborator"
  89. price: 1500
  90. features: features.collaborator
  91. },{
  92. planCode: "professional"
  93. name: "Professional"
  94. price: 3000
  95. features: features.professional
  96. }]
  97. bonus_features:
  98. 1:
  99. collaborators: 2
  100. dropbox: false
  101. versioning: false
  102. 3:
  103. collaborators: 4
  104. dropbox: false
  105. versioning: false
  106. 6:
  107. collaborators: 4
  108. dropbox: true
  109. versioning: true
  110. 9:
  111. collaborators: -1
  112. dropbox: true
  113. versioning: true
  114. proxyUrls:
  115. '/institutions/list': { baseUrl: v1Api.url, path: '/universities/list' }
  116. '/institutions/list/:id':
  117. baseUrl: v1Api.url
  118. path: (params) -> "/universities/list/#{params.id}"
  119. '/institutions/domains': { baseUrl: v1Api.url, path: '/university/domains' }
  120. '/proxy/missing/baseUrl': path: '/foo/bar'
  121. '/proxy/get_and_post': {
  122. methods: ['get', 'post'],
  123. path: '/destination/get_and_post'
  124. }
  125. redirects:
  126. '/redirect/one': '/destination/one',
  127. '/redirect/get_and_post': {
  128. methods: ['get', 'post'],
  129. url: '/destination/get_and_post'
  130. },
  131. '/redirect/base_url': {
  132. baseUrl: 'https://example.com'
  133. url: '/destination/base_url'
  134. },
  135. '/redirect/params/:id': {
  136. url: (params) -> "/destination/#{params.id}/params"
  137. },
  138. '/redirect/qs': '/destination/qs'
  139. '/docs_v1': {
  140. url: '/docs'
  141. }
  142. oauthProviders:
  143. 'provider': {
  144. name: 'provider'
  145. },
  146. 'collabratec': {
  147. name: 'collabratec'
  148. }
  149. 'google': {
  150. name: 'google'
  151. },
  152. # setting to true since many features are enabled/disabled after availability of this
  153. # property (check Features.js)
  154. overleaf: true