@@ -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(),
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user