settings.test.coffee 3.6 KB

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