mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
37155e78be
[web] cleanup web-module init modules GitOrigin-RevId: 97a05c6fe79fbd96f9697a16ed7099827edc81f0
79 lines
1.7 KiB
JavaScript
79 lines
1.7 KiB
JavaScript
const { merge } = require('@overleaf/settings/merge')
|
|
const baseApp = require('../../../config/settings.overrides.saas')
|
|
const baseTest = require('./settings.test.defaults')
|
|
|
|
const httpAuthUser = 'overleaf'
|
|
const httpAuthPass = 'password'
|
|
const httpAuthUsers = {}
|
|
httpAuthUsers[httpAuthUser] = httpAuthPass
|
|
|
|
const overrides = {
|
|
enableSubscriptions: true,
|
|
|
|
apis: {
|
|
thirdPartyDataStore: {
|
|
url: `http://127.0.0.1:23002`,
|
|
},
|
|
analytics: {
|
|
url: `http://127.0.0.1:23050`,
|
|
},
|
|
recurly: {
|
|
url: 'http://127.0.0.1:26034',
|
|
subdomain: 'test',
|
|
apiKey: 'private-nonsense',
|
|
webhookUser: 'recurly',
|
|
webhookPass: 'webhook',
|
|
},
|
|
|
|
tpdsworker: {
|
|
// Disable tpdsworker in CI.
|
|
url: undefined,
|
|
},
|
|
|
|
v1: {
|
|
url: `http://127.0.0.1:25000`,
|
|
user: 'overleaf',
|
|
pass: 'password',
|
|
},
|
|
},
|
|
|
|
oauthProviders: {
|
|
provider: {
|
|
name: 'provider',
|
|
},
|
|
collabratec: {
|
|
name: 'collabratec',
|
|
},
|
|
google: {
|
|
name: 'google',
|
|
},
|
|
},
|
|
|
|
saml: undefined,
|
|
|
|
contentful: {
|
|
spaceId: 'a',
|
|
deliveryToken: 'b',
|
|
previewToken: 'c',
|
|
deliveryApiHost: 'cdn.contentful.com',
|
|
previewApiHost: 'preview.contentful.com',
|
|
},
|
|
|
|
twoFactorAuthentication: {
|
|
accessTokenEncryptorOptions: {
|
|
cipherPasswords: {
|
|
'2023.1-v3': 'this-is-a-weak-secret-for-tests-web-2023.1-v3',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
module.exports = baseApp.mergeWith(baseTest.mergeWith(overrides))
|
|
|
|
for (const redisKey of Object.keys(module.exports.redis)) {
|
|
module.exports.redis[redisKey].host = process.env.REDIS_HOST || '127.0.0.1'
|
|
}
|
|
|
|
module.exports.mergeWith = function (overrides) {
|
|
return merge(overrides, module.exports)
|
|
}
|