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:
parent
54b2215164
commit
7ae3e32abd
7
packages/node_modules/node-red/settings.js
vendored
7
packages/node_modules/node-red/settings.js
vendored
@ -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'}}
|
||||||
//],
|
//],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user