Fixes for config update (#2655)

Ref #2626 #2654
This commit is contained in:
Paul Melnikow
2019-01-06 12:23:58 -05:00
committed by GitHub
parent fa5309400d
commit bc0be4f619
7 changed files with 14 additions and 5 deletions

View File

@@ -96,6 +96,8 @@ const privateConfigSchema = Joi.object({
nexus_pass: Joi.string(),
npm_token: Joi.string(),
sentry_dsn: Joi.string(),
shields_ips: Joi.array().items(Joi.string().ip()),
shields_secret: Joi.string(),
sl_insight_userUuid: Joi.string(),
sl_insight_apiToken: Joi.string(),
sonarqube_token: Joi.string(),

View File

@@ -58,7 +58,7 @@ function setRoutes({ rateLimit }, server) {
})
server.get('/sys/network', (req, res) => {
res.json({ ips: serverSecrets.shieldsIps })
res.json({ ips: serverSecrets.shields_ips })
})
server.ws('/sys/logs', socket => {