17 lines
482 B
Markdown
17 lines
482 B
Markdown
# Backend
|
|
|
|
Generate random secret using openssl. This secret will be used to authenticate users on all `/admin` routes.
|
|
If no secret is given then no authentication will be required
|
|
|
|
```bash
|
|
nuchat --admin-secret $(openssl rand --base64 32)
|
|
```
|
|
|
|
## Features
|
|
|
|
### shutdown
|
|
this feature enables an endpoint that allows you to shutdown the server.
|
|
|
|
**WARNING**: If the `admin-secret` flag is not set then this endpoint is completely exposed and allows anyone to shutdown the server.
|
|
|