settings.test.coffee 3.3 KB

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