Skip to content

mister13337/node-red-dashboard-2-basic-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Optionally, your Webserver can send a role in the request header key "X-Forwarded-Role".

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";
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 89.9%
  • HTML 10.1%