docs: update README - mongo 8, JSON push format, remove deprecated query params
This commit is contained in:
parent
8880659862
commit
e0e9de0e85
1 changed files with 8 additions and 5 deletions
13
README.md
13
README.md
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
A self-hosted backup monitoring dashboard with a premium dark-theme UI, MongoDB backend, and deep integrations for Borgmatic, Uptime Kuma, Prometheus, and webhooks.
|
||||
|
||||
   
|
||||
   
|
||||
|
||||
## Features
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ services:
|
|||
- mongo
|
||||
|
||||
mongo:
|
||||
image: mongo:4.4 # Use 7+ if your CPU supports AVX
|
||||
image: mongo:8
|
||||
container_name: backup-mongo
|
||||
restart: always
|
||||
volumes:
|
||||
|
|
@ -65,7 +65,9 @@ After each backup, send a POST request:
|
|||
|
||||
```bash
|
||||
# Minimal push
|
||||
curl -X POST "http://localhost:9999/api/push?host=myserver&status=ok"
|
||||
curl -X POST -H "Content-Type: application/json" \
|
||||
-d '{"host":"myserver","status":"ok"}' \
|
||||
http://localhost:9999/api/push
|
||||
|
||||
# Full push with stats
|
||||
curl -X POST -H "Content-Type: application/json" \
|
||||
|
|
@ -82,8 +84,9 @@ curl -X POST -H "Content-Type: application/json" \
|
|||
http://localhost:9999/api/push
|
||||
|
||||
# With API key
|
||||
curl -X POST -H "X-API-Key: your-key" \
|
||||
"http://localhost:9999/api/push?host=myserver&status=ok"
|
||||
curl -X POST -H "X-API-Key: your-key" -H "Content-Type: application/json" \
|
||||
-d '{"host":"myserver","status":"ok"}' \
|
||||
http://localhost:9999/api/push
|
||||
```
|
||||
|
||||
### Borgmatic Integration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue