Skip to content
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

Open
jarrah42 opened this issue Sep 14, 2021 · 4 comments
Open

Authentication support? #37

jarrah42 opened this issue Sep 14, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@jarrah42
Copy link

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!

@rstrouse
Copy link
Owner

I will look at this deeper. There is the start of role based security in the system and pin codes for unlocking specific features.

@rstrouse rstrouse added the enhancement New feature or request label Nov 22, 2021
@mguinness
Copy link

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.

@mguinness
Copy link

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

@tagyoureit
Copy link
Collaborator

tagyoureit commented Sep 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants