mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Attached admin route before node route security
This commit is contained in:
parent
50d0a88276
commit
c70c00043b
6
red.js
6
red.js
@ -195,12 +195,12 @@ if (settings.httpAdminRoot !== false && settings.httpAdminAuth) {
|
|||||||
app.use(settings.httpAdminRoot, basicAuthMiddleware(settings.httpAdminAuth.user,settings.httpAdminAuth.pass));
|
app.use(settings.httpAdminRoot, basicAuthMiddleware(settings.httpAdminAuth.user,settings.httpAdminAuth.pass));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.httpNodeRoot !== false && settings.httpNodeAuth) {
|
|
||||||
app.use(settings.httpNodeRoot,basicAuthMiddleware(settings.httpNodeAuth.user,settings.httpNodeAuth.pass));
|
|
||||||
}
|
|
||||||
if (settings.httpAdminRoot !== false) {
|
if (settings.httpAdminRoot !== false) {
|
||||||
app.use(settings.httpAdminRoot,RED.httpAdmin);
|
app.use(settings.httpAdminRoot,RED.httpAdmin);
|
||||||
}
|
}
|
||||||
|
if (settings.httpNodeRoot !== false && settings.httpNodeAuth) {
|
||||||
|
app.use(settings.httpNodeRoot,basicAuthMiddleware(settings.httpNodeAuth.user,settings.httpNodeAuth.pass));
|
||||||
|
}
|
||||||
if (settings.httpNodeRoot !== false) {
|
if (settings.httpNodeRoot !== false) {
|
||||||
app.use(settings.httpNodeRoot,RED.httpNode);
|
app.use(settings.httpNodeRoot,RED.httpNode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user