fix: authenticate weblate requests (#6790)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Seth Falco
2021-07-25 17:53:41 +02:00
committed by GitHub
parent 1e72d5e905
commit bd6f4ee146
12 changed files with 71 additions and 36 deletions

View File

@@ -135,6 +135,7 @@ const publicConfigSchema = Joi.object({
npm: defaultService,
sonar: defaultService,
teamcity: defaultService,
weblate: defaultService,
trace: Joi.boolean().required(),
}).required(),
cacheHeaders: { defaultCacheLengthSeconds: nonNegativeInteger },
@@ -182,6 +183,7 @@ const privateConfigSchema = Joi.object({
wheelmap_token: Joi.string(),
influx_username: Joi.string(),
influx_password: Joi.string(),
weblate_api_key: Joi.string(),
youtube_api_key: Joi.string(),
}).required()
const privateMetricsInfluxConfigSchema = privateConfigSchema.append({