update example and document feature for httpStatic options

This commit is contained in:
Kevin Godell 2023-03-20 17:34:12 -05:00
parent 54b2215164
commit 7ae3e32abd
1 changed files with 7 additions and 2 deletions

View File

@ -223,10 +223,15 @@ module.exports = {
* to move httpAdminRoot
*/
//httpStatic: '/home/nol/node-red-static/', //single static source
/* OR multiple static sources can be created using an array of objects... */
/**
* OR multiple static sources can be created using an array of objects...
* Each object can also contain an options object for further configuration.
* See https://expressjs.com/en/api.html#express.static for available options.
*/
//httpStatic: [
// {path: '/home/nol/pics/', root: "/img/"},
// {path: '/home/nol/reports/', root: "/doc/"},
// {path: '/home/nol/videos/', root: "/vid/", options: {maxAge: '1d'}}
//],
/**
@ -431,7 +436,7 @@ module.exports = {
enabled: true
}
},
},
/*******************************************************************************