0.1.1 • Published 10 months ago

@aikitori/node-red-dashboard-2-basic-auth v0.1.1

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
10 months ago

Node-RED Dashboard with HTTP Basic Authentication

Requirements

  • A Webserver with activated HTTP Basic auth

Configuration

Configure your Webserver, that the http user is added to the request header key "X-Forwarded-User" See here how to cofigure nginx for example

Example

nginx

server {
  listen 80;
  location / {

    auth_basic "Node-RED Dashboard";
    auth_basic_user_file /etc/nginx/htpasswd;
    proxy_set_header X-Forwarded-User $remote_user;

    proxy_pass http://localhost:1880;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  }
}
0.1.1

10 months ago

0.1.0

10 months ago