【问题标题】:How to change path to Node-RED Dashboard如何更改 Node-RED 仪表板的路径
【发布时间】:2019-02-26 12:37:06
【问题描述】:

默认情况下,Node-RED 仪表板 UI 位于 http://example.com:1880/ui 路由上,Node-RED 编辑器位于 http://example.com/ 上。

我想将仪表板 UI 移动到 http://example.com/ 并将编辑器移动到另一个路径。

【问题讨论】:

  • 我不确定我是否理解这个问题。您想在不使用用户界面的情况下远程访问 Pi?和 ssh 一样吗?

标签: iot node-red


【解决方案1】:

这可以通过编辑 Node-RED 用户目录中的 settings.js 文件来实现(通常为 ~/.node-red)

取消注释httpAdmnRoot

// By default, the Node-RED UI is available at http://localhost:1880/
// The following property can be used to specifiy a different root path.
// If set to false, this is disabled.
httpAdminRoot: '/admin',

同时取消注释并编辑 ui 条目:

// If you installed the optional node-red-dashboard you can set it's path
// relative to httpRoot
ui: { path: "/" },

重新启动 Node-RED 后,编辑器将位于 http://example.com:1880/admin,仪表板 UI 将位于 http://example.com:1880/

【讨论】:

    猜你喜欢
    • 2018-01-18
    • 2021-05-21
    • 2017-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-13
    相关资源
    最近更新 更多