2023-12-10 12:23:42 +00:00
|
|
|
SilverBullet supports simple authentication for a single user.
|
2023-06-13 18:47:05 +00:00
|
|
|
|
|
|
|
By simply passing the `--user` flag with a username:password combination, you enable authentication for a single user. For instance:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
silverbullet --user pete:1234 .
|
|
|
|
```
|
|
|
|
|
|
|
|
Will let `pete` authenticate with password `1234`.
|
|
|
|
|
2023-12-19 11:58:18 +00:00
|
|
|
Alternatively, the same information can be passed in via the `SB_USER` environment variable, e.g.
|
2023-06-13 18:47:05 +00:00
|
|
|
|
|
|
|
```shell
|
2023-12-10 12:23:42 +00:00
|
|
|
SB_USER=pete:1234 silverbullet .
|
2023-06-13 18:47:05 +00:00
|
|
|
```
|
|
|
|
|
2023-12-10 12:23:42 +00:00
|
|
|
This is especially convenient when deploying using Docker
|