Persist a per-install JWT signing secret instead of a compiled-in default.
Admin tokens were forgeable whenever JWT_SECRET was unset. Prefer the env var, otherwise write a random key to data/.jwt_secret.
This commit is contained in:
@@ -47,6 +47,7 @@ See docker-compose.yml for full example (exposes 80/81/443, volume for data/).
|
||||
- `data/db.bolt` (or `DATA_DIR`)
|
||||
- `data/certs/`, `data/logs/`, `data/letsencrypt-acme-challenge/`
|
||||
- `data/www/` (default site / custom html; `WWW_DIR` or `HTML_DIR`)
|
||||
- `data/.jwt_secret` (auto-generated admin API signing key if `JWT_SECRET` is unset)
|
||||
- etc.
|
||||
|
||||
## Status
|
||||
|
||||
Reference in New Issue
Block a user