1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

@ -223,10 +223,15 @@ module.exports = {
* to move httpAdminRoot * to move httpAdminRoot
*/ */
//httpStatic: '/home/nol/node-red-static/', //single static source //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: [ //httpStatic: [
// {path: '/home/nol/pics/', root: "/img/"}, // {path: '/home/nol/pics/', root: "/img/"},
// {path: '/home/nol/reports/', root: "/doc/"}, // {path: '/home/nol/reports/', root: "/doc/"},
// {path: '/home/nol/videos/', root: "/vid/", options: {maxAge: '1d'}}
//], //],
/** /**