Update diagnostics as per Issue discussion

This commit is contained in:
Steve-Mcl
2022-03-29 20:48:29 +01:00
parent cf6df1556c
commit 03763a1423
3 changed files with 66 additions and 64 deletions

View File

@@ -224,7 +224,7 @@ module.exports = {
/*******************************************************************************
* Runtime Settings
* - lang
* - diagnosticsOptions
* - diagnostics
* - logging
* - contextStorage
* - exportGlobalContextKeys
@@ -240,14 +240,14 @@ module.exports = {
/** ### Configure diagnostics options
* - `.enabled`: When `enabled` is `true` (or unset), diagnostics data will
* be available at http://localhost:1880/diagnostics
* - `.level`: When `level` is "basic" (or unset), the diagnostics will not
* include sensitive data. Set level to "admin" for detailed diagnostics
* - `.ui`: When `ui` is `true` (or unset), the action `show-system-info` will
* be available to logged in users of node-red editor
*/
diagnosticsOptions: {
/** @type {boolean} enable or disable diagnostics. Must be set to `false` to disable */
diagnostics: {
/** @type {boolean} `enabled` - enable or disable diagnostics endpoint. Must be set to `false` to disable */
enabled: true,
/** @type {"basic"|"admin"} diagnostic level can be "basic" (default) or "admin" (more sensitive details are included) */
level: "basic",
/** @type {boolean} `ui` - enable or disable diagnostics display in the node-red editor. Must be set to `false` to disable */
ui: true,
},
/** Configure the logging output */