Fixed Git integration
This commit is contained in:
@@ -132,11 +132,16 @@ curl -X PUT http://localhost:8080/api/v1/projects/home-assistant/gitea \
|
||||
|
||||
В репозитории: **Settings → Webhooks → Add Webhook**:
|
||||
|
||||
- URL: `http://127.0.0.1:8080/api/v1/webhooks/gitea`
|
||||
- URL (выбери один вариант):
|
||||
- **Рекомендуется:** `https://assistant.example.com/api/v1/webhooks/gitea` — nginx → `127.0.0.1:${BACKEND_PORT}`
|
||||
- **Если Gitea в Docker:** `http://172.17.0.1:${BACKEND_PORT}/api/v1/webhooks/gitea` — не `127.0.0.1` (это localhost контейнера Gitea)
|
||||
- Content type: `application/json`
|
||||
- Secret: значение `GITEA_WEBHOOK_SECRET`
|
||||
- Events: **Push**
|
||||
|
||||
Проверка из контейнера Gitea: `docker exec gitea wget -qO- http://172.17.0.1:8202/api/v1/health`
|
||||
Test delivery в Gitea должен вернуть **200**, не **0**.
|
||||
|
||||
### Автозакрытие по коммиту
|
||||
|
||||
В сообщении коммита:
|
||||
|
||||
Reference in New Issue
Block a user