Skip to content

Commit

Permalink
update example and document feature for httpStatic options
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinGodell committed Mar 20, 2023
1 parent 54b2215 commit 7ae3e32
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/node_modules/node-red/settings.js
Expand Up @@ -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'}}
//],

/**
Expand Down Expand Up @@ -431,7 +436,7 @@ module.exports = {
enabled: true
}
},

},

/*******************************************************************************
Expand Down

0 comments on commit 7ae3e32

Please sign in to comment.