document length hack

This commit is contained in:
decentral1se 2022-03-09 12:34:06 +01:00
parent 5312f4a81b
commit 165dc5b9cb
Signed by untrusted user: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 19 additions and 0 deletions

View File

@ -443,3 +443,22 @@ If you want to get the highest rating on SSL certs, you can use the following tr
```
See [this PR](https://git.coopcloud.tech/coop-cloud/traefik/pulls/8/files) for the technical details
## Tweaking secret generation length
It is possible to tell `abra` which length it should generate secrets with from your recipe config.
You do this by adding a inline comment to the secret definition in the `.env.sample` / `.env` file.
Here are examples from the gitea recipe:
```
SECRET_INTERNAL_TOKEN_VERSION=v1 # length=105
SECRET_JWT_SECRET_VERSION=v1 # length=43
SECRET_SECRET_KEY_VERSION=v1 # length=64
```
When using this length specifier, `abra` will not use the "easy to remember
word" styl generator but instead a string of chars to match the exact length.
This can be useful if you have to generate "key" style values instead of
passwords which admins have to type out in database shells.