An open API service indexing awesome lists of open source software.

https://github.com/junkfix/node-red-custom-login

Node-RED custom login page for admin and dashboard with brute-force protection
https://github.com/junkfix/node-red-custom-login

custom login node-red

Last synced: 12 months ago
JSON representation

Node-RED custom login page for admin and dashboard with brute-force protection

Awesome Lists containing this project

README

          

# Custom Login with brute force protection

Here is the `settings.js` file changes:

```
module.exports = {

//adminAuth: {
// ...
//},

//httpNodeAuth: {user:"user",pass:"$2a$0...WV9DN."},

httpAdminRoot: '/admin',

httpAdminMiddleware: require("./custom-login.js"),

//httpNodeMiddleware: function(req,res,next) {
// ...
//},

//for "http in" node protection
httpNodeMiddleware: require("./custom-login.js"),

//for dashboard protection
ui: {
path: "ui",
middleware: require("./custom-login.js")
},
}
```
here is full default [settings.js](https://github.com/htmltiger/node-red-custom-login/files/14100239/settings.js.txt) with above changes

copy `custom-login.js` in the same folder as `settings.js`

You can also configure the function to send MQTT message or run a shell command.
---

Buy Me A Coffee