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

Added basic auth to the dashboard and updated readme with default logins #213

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.txt
Expand Up @@ -64,3 +64,8 @@ Finally, you can start, stop or restart a specific process::
./bin/supervisorctl restart uwsgi

Point your browser to http://127.0.0.1:8000 and you are ready to roll!
use logins 'mist'/ '@wesom3'

Edit the file haproxy.conf and then restart the haproxy if you need to change this password

./bin/supervisorctl restart haproxy
7 changes: 7 additions & 0 deletions haproxy.conf
Expand Up @@ -2,6 +2,9 @@ global
maxconn 4096 # Total Max Connections. This is dependent on ulimit
nbproc 1

userlist httpusers
user mist insecure-password @wesom3

defaults
timeout connect 5s
timeout queue 5s
Expand All @@ -27,6 +30,9 @@ backend www_backend
option forwardfor # This sets X-Forwarded-For
timeout client 5s
server uwsgi1 localhost:8001 weight 1 maxconn 1024 check
acl auth_acl http_auth(httpusers)
http-request auth realm basicauth unless auth_acl

# server uwsgi2 localhost:8002 weight 1 maxconn 1024 check

backend websocket_backend
Expand All @@ -38,6 +44,7 @@ backend websocket_backend
no option httpclose
cookie SERVERID insert indirect nocache
server socket1 localhost:8081 cookie socket1 weight 1 maxconn 1024 check

# server socket2 localhost:8082 cookie socket2 weight 1 maxconn 1024 check

#backend flashsocket_backend
Expand Down