2018-07-04 16:59:19 +00:00
|
|
|
v1Api =
|
2019-11-21 10:08:26 +00:00
|
|
|
url: "http://localhost:5000"
|
|
|
|
user: 'overleaf'
|
|
|
|
pass: 'password'
|
2018-07-04 16:59:19 +00:00
|
|
|
|
2019-12-18 09:25:51 +00:00
|
|
|
httpAuthUser = "sharelatex"
|
|
|
|
httpAuthPass = "password"
|
|
|
|
httpAuthUsers = {}
|
|
|
|
httpAuthUsers[httpAuthUser] = httpAuthPass
|
|
|
|
|
2018-05-16 15:31:28 +00:00
|
|
|
module.exports =
|
2020-06-26 09:49:52 +00:00
|
|
|
cacheStaticAssets: true
|
2018-05-16 15:31:28 +00:00
|
|
|
enableSubscriptions: true
|
2018-10-23 11:24:34 +00:00
|
|
|
|
2019-12-18 09:25:51 +00:00
|
|
|
httpAuthUsers: httpAuthUsers
|
2020-08-19 09:09:02 +00:00
|
|
|
adminDomains: ['example.com']
|
2019-12-18 09:25:51 +00:00
|
|
|
|
2018-11-19 15:44:51 +00:00
|
|
|
apis:
|
2019-12-18 09:25:51 +00:00
|
|
|
web:
|
|
|
|
user: httpAuthUser
|
|
|
|
pass: httpAuthPass
|
2019-11-21 10:08:26 +00:00
|
|
|
v1:
|
|
|
|
url: v1Api.url
|
|
|
|
user: v1Api.user
|
|
|
|
pass: v1Api.pass
|
2018-11-19 15:44:51 +00:00
|
|
|
recurly:
|
|
|
|
# Set up our own mock recurly server
|
|
|
|
url: 'http://localhost:6034'
|
|
|
|
subdomain: 'test'
|
|
|
|
|
2018-10-23 11:24:34 +00:00
|
|
|
# for registration via SL, set enableLegacyRegistration to true
|
|
|
|
# for registration via Overleaf v1, set enableLegacyLogin to true
|
|
|
|
|
|
|
|
# Currently, acceptance tests require enableLegacyRegistration.
|
2018-09-20 14:34:14 +00:00
|
|
|
enableLegacyRegistration: true
|
2018-05-16 15:31:28 +00:00
|
|
|
|
|
|
|
features: features =
|
|
|
|
v1_free:
|
|
|
|
collaborators: 1
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
github: true
|
2018-11-14 11:08:15 +00:00
|
|
|
gitBridge: true
|
2018-05-16 15:31:28 +00:00
|
|
|
templates: false
|
|
|
|
references: false
|
|
|
|
referencesSearch: false
|
|
|
|
mendeley: true
|
|
|
|
compileTimeout: 60
|
|
|
|
compileGroup: "standard"
|
|
|
|
trackChanges: false
|
|
|
|
personal:
|
|
|
|
collaborators: 1
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
github: false
|
2018-11-14 11:08:15 +00:00
|
|
|
gitBridge: false
|
2018-05-16 15:31:28 +00:00
|
|
|
templates: false
|
|
|
|
references: false
|
|
|
|
referencesSearch: false
|
|
|
|
mendeley: false
|
|
|
|
compileTimeout: 60
|
|
|
|
compileGroup: "standard"
|
|
|
|
trackChanges: false
|
|
|
|
collaborator:
|
|
|
|
collaborators: 10
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
|
|
|
github: true
|
2018-11-14 11:08:15 +00:00
|
|
|
gitBridge: true
|
2018-05-16 15:31:28 +00:00
|
|
|
templates: true
|
|
|
|
references: true
|
|
|
|
referencesSearch: true
|
|
|
|
mendeley: true
|
|
|
|
compileTimeout: 180
|
|
|
|
compileGroup: "priority"
|
|
|
|
trackChanges: true
|
|
|
|
professional:
|
|
|
|
collaborators: -1
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
|
|
|
github: true
|
2018-11-14 11:08:15 +00:00
|
|
|
gitBridge: true
|
2018-05-16 15:31:28 +00:00
|
|
|
templates: true
|
|
|
|
references: true
|
|
|
|
referencesSearch: true
|
|
|
|
mendeley: true
|
|
|
|
compileTimeout: 180
|
|
|
|
compileGroup: "priority"
|
|
|
|
trackChanges: true
|
|
|
|
|
|
|
|
defaultFeatures: features.personal
|
|
|
|
defaultPlanCode: 'personal'
|
2018-07-10 09:42:17 +00:00
|
|
|
institutionPlanCode: 'professional'
|
2018-05-16 15:31:28 +00:00
|
|
|
|
|
|
|
plans: plans = [{
|
|
|
|
planCode: "v1_free"
|
|
|
|
name: "V1 Free"
|
|
|
|
price: 0
|
|
|
|
features: features.v1_free
|
|
|
|
},{
|
|
|
|
planCode: "personal"
|
|
|
|
name: "Personal"
|
|
|
|
price: 0
|
|
|
|
features: features.personal
|
|
|
|
},{
|
|
|
|
planCode: "collaborator"
|
|
|
|
name: "Collaborator"
|
|
|
|
price: 1500
|
|
|
|
features: features.collaborator
|
|
|
|
},{
|
|
|
|
planCode: "professional"
|
|
|
|
name: "Professional"
|
|
|
|
price: 3000
|
|
|
|
features: features.professional
|
|
|
|
}]
|
|
|
|
|
|
|
|
bonus_features:
|
|
|
|
1:
|
|
|
|
collaborators: 2
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
3:
|
|
|
|
collaborators: 4
|
|
|
|
dropbox: false
|
|
|
|
versioning: false
|
|
|
|
6:
|
|
|
|
collaborators: 4
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
|
|
|
9:
|
|
|
|
collaborators: -1
|
|
|
|
dropbox: true
|
|
|
|
versioning: true
|
2018-07-04 16:59:19 +00:00
|
|
|
|
|
|
|
proxyUrls:
|
|
|
|
'/institutions/list': { baseUrl: v1Api.url, path: '/universities/list' }
|
|
|
|
'/institutions/list/:id':
|
|
|
|
baseUrl: v1Api.url
|
|
|
|
path: (params) -> "/universities/list/#{params.id}"
|
|
|
|
'/institutions/domains': { baseUrl: v1Api.url, path: '/university/domains' }
|
|
|
|
'/proxy/missing/baseUrl': path: '/foo/bar'
|
2018-09-17 14:34:35 +00:00
|
|
|
'/proxy/get_and_post': {
|
|
|
|
methods: ['get', 'post'],
|
|
|
|
path: '/destination/get_and_post'
|
|
|
|
}
|
2018-09-11 15:45:39 +00:00
|
|
|
|
2018-09-12 14:35:30 +00:00
|
|
|
redirects:
|
|
|
|
'/redirect/one': '/destination/one',
|
2018-09-17 14:34:35 +00:00
|
|
|
'/redirect/get_and_post': {
|
|
|
|
methods: ['get', 'post'],
|
|
|
|
url: '/destination/get_and_post'
|
2018-09-12 14:35:30 +00:00
|
|
|
},
|
|
|
|
'/redirect/base_url': {
|
|
|
|
baseUrl: 'https://example.com'
|
|
|
|
url: '/destination/base_url'
|
|
|
|
},
|
|
|
|
'/redirect/params/:id': {
|
|
|
|
url: (params) -> "/destination/#{params.id}/params"
|
2018-09-18 10:32:31 +00:00
|
|
|
},
|
|
|
|
'/redirect/qs': '/destination/qs'
|
2018-11-15 09:40:33 +00:00
|
|
|
'/docs_v1': {
|
2018-09-27 11:19:16 +00:00
|
|
|
url: '/docs'
|
|
|
|
}
|
2019-07-11 15:22:25 +00:00
|
|
|
|
|
|
|
oauthProviders:
|
|
|
|
'provider': {
|
|
|
|
name: 'provider'
|
|
|
|
},
|
|
|
|
'collabratec': {
|
|
|
|
name: 'collabratec'
|
|
|
|
}
|
|
|
|
'google': {
|
|
|
|
name: 'google'
|
|
|
|
},
|
2020-07-27 09:01:31 +00:00
|
|
|
|
|
|
|
# for testing /user/bonus
|
|
|
|
social:
|
|
|
|
twitter:
|
|
|
|
handle: 'overleaf'
|
|
|
|
|
|
|
|
facebook:
|
|
|
|
appId: '400474170024644'
|
|
|
|
picture: 'https://www.overleaf.com/img/ol-brand/logo-horizontal.png'
|
|
|
|
redirectUri: 'https://www.overleaf.com'
|
|
|
|
|
2019-08-16 14:03:54 +00:00
|
|
|
# setting to true since many features are enabled/disabled after availability of this
|
2019-08-15 13:47:31 +00:00
|
|
|
# property (check Features.js)
|
|
|
|
overleaf: true
|
2021-01-19 15:51:48 +00:00
|
|
|
|
|
|
|
reconfirmNotificationDays: 14
|