add basic backend

This commit is contained in:
2025-07-21 17:08:30 +01:00
parent d0ca82972f
commit 50d094be8f
14 changed files with 2714 additions and 2 deletions

15
backend/readme.md Normal file
View File

@ -0,0 +1,15 @@
# 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.