如何将路径更改为节点红色仪表板



默认情况下,节点 - 雷德仪表板UI生活在http://example.com:1880/ui路线上,而Node-red编辑器生活在http://example.com/上。。

我想将仪表板UI移至http://example.com/,然后将编辑器转到另一个路径。

这可以通过在节点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: "/" },

重新启动节点 - 编辑器将在http://example.com:1880/admin上,dashboard UI将在http://example.com:1880/

最新更新