-
Notifications
You must be signed in to change notification settings - Fork 533
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
Basic Auth system (for read-only / read-write access) #4
Comments
Alternatively if anyone can provide a how-to/guide on setting up auth with reverse proxy - that would be highly appreciated. |
Oops -- sorry for the late reply! I was made aware of this issue just now. Password-protected reverse proxy setup instructions with nginx are here: http://kbeezie.com/view/protecting-folders-with-nginx/ I'll get a sample nginx configuration file checked in to the repository -- please ping me if you don't see a check-in to that effect by the next weekend. :-) |
Trying it out - would love to see the sample config file :) |
Hi! I've just checked in a sample config for nginx. The steps I've used to set it up is: cd ethercalc
git pull
brew install nginx # or "apt-get install nginx", etc
nginx -p `pwd`/nginx/ -c conf/nginx.conf
node app.js --key secret # change "secret" to something site-specific Connect to http://localhost:9000/ as usual; editors can use username "foo" and password "bar" to login and edit pages in authenticated URLs such as http://localhost:9000/xyz/edit ; readers may use normal read-only URLs such as http://localhost:9000/xyz (without the To adjust the authentication passwords beyond the default foo/bar, use the # Adding password for user newuser
htpasswd -b nginx/conf/.htpasswd newuser newpass
# Deleting password for user foo
htpasswd -D nginx/conf/.htpasswd foo Hope this helps! Cheers, |
BTW, after using Ctrl-C to stop nginx -p `pwd`/nginx/ -s stop |
Thanks for the updates but I can't get this to work. |
Hi! Please ensure you have nginx 1.1.4 or later (preferably nginx 1.2.0), as verified by After that, please try nginx -p `pwd`/nginx/ -s stop
nginx -p `pwd`/nginx/ -c conf/nginx.conf
node app.js --key secret Please let me know if it helps! |
Can this be put into the documentation? There should it go, instead of referring from the documentation to an issue ... |
Thanks for the auth-work so far. We would need a stand-alone solution. As you mentioned in issue #1 if a basic auth system is required I should open a new issue - here it is ;-)
The text was updated successfully, but these errors were encountered: