mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 03:15:08 +00:00
fix(serve): close the developer dashboard when a config reload removes its key
This commit is contained in:
@@ -20,6 +20,9 @@ serve:
|
||||
```
|
||||
|
||||
Without `dashboard.key` the server does not register the routes, and they answer `404`.
|
||||
A config reload that removes the dashboard key closes the dashboard: the routes answer `404` and
|
||||
an open `/api/dashboard/events` connection ends. To add a dashboard key to a server that started
|
||||
without one, restart it.
|
||||
`serve --no-key` turns off user authentication only; the dashboard key stays required.
|
||||
Once the dashboard key is set, every `/api/dashboard/` request must carry it in
|
||||
`X-Secret-Key`.
|
||||
|
||||
Reference in New Issue
Block a user