settings.test.coffee 2.7 KB

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