@@ -140,6 +140,7 @@ module.exports = {
140140 * - httpNodeCors
141141 * - httpNodeMiddleware
142142 * - httpStatic
143+ * - httpStaticRoot
143144 ******************************************************************************/
144145
145146 /** the tcp port that the Node-RED web server is listening on */
@@ -221,8 +222,25 @@ module.exports = {
221222 /** When httpAdminRoot is used to move the UI to a different root path, the
222223 * following property can be used to identify a directory of static content
223224 * that should be served at http://localhost:1880/.
225+ * When httpStaticRoot is set differently to httpAdminRoot, there is no need
226+ * to move httpAdminRoot
224227 */
225- //httpStatic: '/home/nol/node-red-static/',
228+ //httpStatic: '/home/nol/node-red-static/', //single static source
229+ /* OR multiple static sources can be created using an array of objects... */
230+ //httpStatic: [
231+ // { path: ' /home/nol/pics/' , root: " /img/" } ,
232+ // { path: ' /home/nol/reports/' , root: " /doc/" } ,
233+ //],
234+
235+ /**
236+ * All static routes will be appended to httpStaticRoot
237+ * e.g. if httpStatic = "/home/nol/docs" and httpStaticRoot = "/static/"
238+ * then "/home/nol/docs" will be served at "/static/"
239+ * e.g. if httpStatic = [{ path: ' /home/nol/pics/' , root: " /img/" } ]
240+ * and httpStaticRoot = "/static/"
241+ * then "/home/nol/pics/" will be served at "/static/img/"
242+ */
243+ //httpStaticRoot: '/static/',
226244
227245/*******************************************************************************
228246 * Runtime Settings
0 commit comments