docs: Gitea health check via /api/healthz (avoid HEAD 405 on /)

Made-with: Cursor
This commit is contained in:
PTah
2026-04-22 12:37:53 +10:00
parent 2505d91d4b
commit ce1e88174b
3 changed files with 10 additions and 7 deletions
+3 -2
View File
@@ -40,10 +40,11 @@ curl -I -H "Host: git.papatramp.ru" http://127.0.0.1
Проверки:
```bash
curl -I http://192.168.128.100:3000
curl -I http://192.168.128.100:3000/api/healthz
curl -sS -o /dev/null -w "%{http_code}\n" http://192.168.128.100:3000/api/healthz
```
Ожидайте код **200**. Не используйте **`curl -I http://…:3000/`** без пути: для **`/`** Gitea отвечает **405** на метод **HEAD** (`curl -I` именно его шлёт).
Если не отвечает:
```bash