overleaf/services/web/test/acceptance/config/settings.test.saas.js
Jakob Ackermann 63520c7076 Merge pull request #16859 from overleaf/jpa-sharelatex-cleanup
[misc] ShareLaTeX cleanup - high impact

GitOrigin-RevId: 6dcce9b0f15e30f7afcf6d69c3df36a369f38120
2024-02-09 09:04:11 +00:00

74 lines
1.6 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://localhost:23002`,
},
analytics: {
url: `http://localhost:23050`,
},
recurly: {
url: 'http://localhost:26034',
subdomain: 'test',
apiKey: 'private-nonsense',
webhookUser: 'recurly',
webhookPass: 'webhook',
},
tpdsworker: {
// Disable tpdsworker in CI.
url: undefined,
},
v1: {
url: `http://localhost:25000`,
user: 'overleaf',
pass: 'password',
},
},
oauthProviders: {
provider: {
name: 'provider',
},
collabratec: {
name: 'collabratec',
},
google: {
name: 'google',
},
},
saml: undefined,
// Disable contentful module.
contentful: undefined,
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 || 'localhost'
}
module.exports.mergeWith = function (overrides) {
return merge(overrides, module.exports)
}