settings.test.coffee 3.9 KB

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