mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix deprecation of httpRoot
This commit is contained in:
parent
62f2a552ea
commit
b62e4f6662
@ -182,7 +182,7 @@ function start() {
|
|||||||
log.info(log._("runtime.paths.settings",{path:settings.settingsFile}));
|
log.info(log._("runtime.paths.settings",{path:settings.settingsFile}));
|
||||||
}
|
}
|
||||||
if (settings.httpRoot !== undefined) {
|
if (settings.httpRoot !== undefined) {
|
||||||
log.warn(log._("server.deprecatedOption",{old:"httpRoot", new: "httpNodeRoot/httpAdminRoot"));
|
log.warn(log._("server.deprecatedOption",{old:"httpRoot", new: "httpNodeRoot/httpAdminRoot"}));
|
||||||
}
|
}
|
||||||
if (settings.httpStatic) {
|
if (settings.httpStatic) {
|
||||||
log.info(log._("runtime.paths.httpStatic",{path:path.resolve(settings.httpStatic)}));
|
log.info(log._("runtime.paths.httpStatic",{path:path.resolve(settings.httpStatic)}));
|
||||||
|
1
packages/node_modules/node-red/red.js
vendored
1
packages/node_modules/node-red/red.js
vendored
@ -263,7 +263,6 @@ httpsPromise.then(function(startupHttps) {
|
|||||||
settings.httpAdminRoot = false;
|
settings.httpAdminRoot = false;
|
||||||
settings.httpNodeRoot = false;
|
settings.httpNodeRoot = false;
|
||||||
} else {
|
} else {
|
||||||
settings.httpRoot = settings.httpRoot||"/";
|
|
||||||
settings.disableEditor = settings.disableEditor||false;
|
settings.disableEditor = settings.disableEditor||false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
packages/node_modules/node-red/settings.js
vendored
2
packages/node_modules/node-red/settings.js
vendored
@ -106,7 +106,7 @@ module.exports = {
|
|||||||
//apiMaxLength: '5mb',
|
//apiMaxLength: '5mb',
|
||||||
|
|
||||||
// If you installed the optional node-red-dashboard you can set it's path
|
// If you installed the optional node-red-dashboard you can set it's path
|
||||||
// relative to httpRoot
|
// relative to httpNodeRoot
|
||||||
// Other optional properties include
|
// Other optional properties include
|
||||||
// readOnly:{boolean},
|
// readOnly:{boolean},
|
||||||
// middleware:{function or array}, (req,res,next) - http middleware
|
// middleware:{function or array}, (req,res,next) - http middleware
|
||||||
|
Loading…
Reference in New Issue
Block a user