settings.test.coffee 3.6 KB

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