mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #62] How would one add authentication to sandman2 (either basic or oauth) (feature request) #40
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tlawork on GitHub (Jun 5, 2017).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/62
How would you add authentication to sandman2?
I only want to allow one particular user with a token or huge password to be able to update or access the database.
---TODDL
@ShyftXero commented on GitHub (Aug 11, 2017):
I am still looking into getting a functioning PR for basic http auth but in the meantime I have nginx running a proxy pass with htpasswd authentication
#added for sandman2ctl rest api location /api/ { proxy_pass http://localhost:3000/; auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/api.htpasswd; }run sandman sandman2ctl -p 3000 <dbconnstring>
from these directions
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-nginx-on-ubuntu-14-04