mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update editor options
http://expressjs.com/en/api.html#app.settings.table Allow for setting individual options on the editor express app. This app is not available through the embedded interface when using Node-RED within another application. Update settings with editor options Allow editor express app options to be set in settings.js Update settings.js formatting Update settings.js Co-Authored-By: TJKoury <TJKoury@gmail.com> editorOptions -> httpServerOptions
This commit is contained in:
@@ -64,6 +64,11 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
}
|
||||
if (settings.httpServerOptions) {
|
||||
for (var eOption in settings.httpServerOptions) {
|
||||
editorApp.set(eOption, settings.httpServerOptions[eOption]);
|
||||
}
|
||||
}
|
||||
editorApp.get("/",ensureRuntimeStarted,ui.ensureSlash,ui.editor);
|
||||
|
||||
editorApp.get("/icons",needsPermission("nodes.read"),nodes.getIcons,apiUtil.errorHandler);
|
||||
|
Reference in New Issue
Block a user