1
0
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:
Nick O'Leary 2021-04-26 14:43:06 +01:00
parent 62f2a552ea
commit b62e4f6662
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
3 changed files with 2 additions and 3 deletions

View File

@ -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)}));

View File

@ -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;
} }

View File

@ -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