Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

How to password protect the port? #11

Open
awesomelionel opened this issue Mar 11, 2014 · 8 comments
Open

How to password protect the port? #11

awesomelionel opened this issue Mar 11, 2014 · 8 comments
Assignees
Labels

Comments

@awesomelionel
Copy link

If this is served on a public ip on port 5555, how do we configure the port that is served, or password protect it with basic auth?

@andre
Copy link
Contributor

andre commented Mar 11, 2014

@awesomelionel there's nothing built into scout_realtime right for password protection right now, but I understand the use case. If this is a common concern, I'll look at implementing. Of course, pull requests are welcome too!

@ghost
Copy link

ghost commented Mar 11, 2014

I'm assuming with both nginx and apache you could proxy pass to localhost:5555, and set up basic authentication from there as a temporary work around.

@nielsen
Copy link

nielsen commented Mar 11, 2014

+1 to http basic at least

@lol768
Copy link

lol768 commented Mar 11, 2014

This is something I'd really like to see, too.

@jasonmit
Copy link

Extending what @gregf mentioned, here is a working configuration I threw together to support basic auth via nginx reverse proxy.

htpasswd -c /var/www/scoutwww/.htpasswd admin

configuration for nginx proxy (/etc/nginx/sites-available/default):

server {
        listen   80;

        root /usr/share/nginx/www;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;

        location / {
                proxy_pass http://localhost:5555;
                auth_basic "Restricted Remote";
                auth_basic_user_file /var/scoutwww/.htpasswd;
        }
}

@Oxicode
Copy link

Oxicode commented Mar 17, 2014

+1

@leolelego
Copy link

I agreed, it can be great to juste have a little password step !

@CodeBrauer
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants