mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add httpStatic setting
This commit is contained in:
parent
07a5d3626e
commit
1536dcdf1e
4
red.js
4
red.js
@ -54,6 +54,10 @@ settings.flowFile = process.argv[2] || settings.flowFile;
|
|||||||
var red = RED.init(server,settings);
|
var red = RED.init(server,settings);
|
||||||
app.use(settings.httpRoot,red);
|
app.use(settings.httpRoot,red);
|
||||||
|
|
||||||
|
if (settings.httpStatic) {
|
||||||
|
app.use("/",express.static(settings.httpStatic));
|
||||||
|
}
|
||||||
|
|
||||||
RED.start();
|
RED.start();
|
||||||
|
|
||||||
var listenPath = 'http'+(settings.https?'s':'')+'://'+
|
var listenPath = 'http'+(settings.https?'s':'')+'://'+
|
||||||
|
@ -40,6 +40,11 @@ module.exports = {
|
|||||||
// The following property can be used to specifiy a different root path.
|
// The following property can be used to specifiy a different root path.
|
||||||
//httpRoot: '/admin',
|
//httpRoot: '/admin',
|
||||||
|
|
||||||
|
// When httpRoot is used to move the UI to a different root path, the
|
||||||
|
// following property can be used to identify a directory of static content
|
||||||
|
// that should be served at http://localhost:1880/.
|
||||||
|
//httpStatic: '/home/nol/node-red-dashboard/',
|
||||||
|
|
||||||
// The following property can be used to enable HTTPS
|
// The following property can be used to enable HTTPS
|
||||||
// See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
// See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
||||||
// for details on its contents.
|
// for details on its contents.
|
||||||
|
Loading…
Reference in New Issue
Block a user