Files
nuchat/backend/readme.md
2025-07-21 17:18:00 +01:00

16 lines
405 B
Markdown

# Backend
Generate random secret using. This secret will be used to authenticate users on all `/admin` routes
```bash
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` env var is not set then this endpoint is completely exposed and allows anyone to shutdown the server.