mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-09 14:40:05 +00:00
Documented ENV variables
This commit is contained in:
parent
1c71fc53c0
commit
a9bc4482f3
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -24,6 +24,19 @@ What you definitely should set when starting the server:
|
|||
- `password-salt` - The login password of your users are stored in the database for comparison when they log in. Though the passwords are hashed this salt gives you more confidence nobody can use a hash table to simply decrypt the passwords.
|
||||
- `username-salt` - The usernames are the keys in the database. Like the passwords they are also hashed but you can put an additional salt to them to make it way harder to break them. You should use another salt than for the passwords.
|
||||
|
||||
If you don't want to define the secrets using command line flags you also can use environment variables to set those flags:
|
||||
|
||||
```
|
||||
FLAG ENV-Variable
|
||||
|
||||
password-salt passwordSalt
|
||||
username-salt usernameSalt
|
||||
storage storage
|
||||
listen listen
|
||||
cookie-authkey authkey
|
||||
cookie-encryptkey encryptkey
|
||||
```
|
||||
|
||||
## Supported storage engines
|
||||
|
||||
### Local file storage (default)
|
||||
|
|
Loading…
Reference in a new issue