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
- Host: GitHub
- URL: https://github.com/junkfix/node-red-custom-login
- Owner: junkfix
- Created: 2022-06-05T13:00:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T13:48:56.000Z (over 2 years ago)
- Last Synced: 2025-04-07T18:52:33.444Z (about 1 year ago)
- Topics: custom, login, node-red
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
---
