settings.test.coffee 3.0 KB

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