doc: clarify how to create users and tokens

Signed-off-by: AJ ONeal <aj@therootcompany.com>
This commit is contained in:
AJ ONeal 2026-03-19 21:17:57 -06:00 committed by GitHub
parent 0d99234914
commit a4cb1e3bfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,10 +6,17 @@ I created this for integrations like Google Sheets (both loading and retrieving
1. Setup some users and/or tokens and/or "guest"
```sh
# create the ./credentials.tsv
csvauth init
csvauth store --roles '/' 'my-admin-user'
csvauth store --roles '/' --token 'an-admin-token'
csvauth store --roles 'GET:/public/ POST:/dropbox/' --ask-password 'guest'
# create a Basic Auth credential 'my-admin-user' with Full Access
csvauth store --roles '/' my-admin-user
# create a Bearer Token credential with the id 'an-admin-token' with Full Access
csvauth store --roles '/' --token an-admin-token
# create a limited Guest user (no password) with access to specific routes
csvauth store --roles 'GET:/public/ POST:/dropbox/' --ask-password guest
```
2. Stand up the proxy behind the TLS Proxy \
(snirouter, [Caddy](https://webinstall.dev/caddy), Traefik, Nginx+certbot, etc)