-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication support? #37
Comments
I will look at this deeper. There is the start of role based security in the system and pin codes for unlocking specific features. |
How about using Basic Authentication? You can use express-basic-auth to get it working. It's rudimentary but it works well especially when HTTPS is being used. |
Another way to achieve this is to use the NGINX Reverse Proxy with the module ngx_http_auth_basic_module. See config example below and note "Use Proxy to njsPC Server" must be enabled in the Pool Control Dashboard. server {
listen 443 ssl http2;
location / {
proxy_pass http://raspberrypi:5150;
auth_basic "Pool Controller";
auth_basic_user_file .htpasswd;
}
} |
I had this enabled at some point in the past. Maybe it was with Express 3? It shouldn't be too hard to add back in. One of us will look at it (and I added it to the wish list). EDIT - Oh, right... that was before dashPanel. Would we want auth on njsPC as well as dashPanel? Not sure both are needed if dashPanel is acting as a proxy. |
I notice that the configuration file has authentication and authFile options but I can't see how these are used. Is there any way to set up simple password authentication? It would be nice to be able to expose the app outside my local network, but I wouldn't want to do that without at least some basic protection. Thanks!
The text was updated successfully, but these errors were encountered: