settings.test.coffee 4.0 KB

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