From b30ce86fa91ed81ddedb7524c62d2505ad1b9f99 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 25 Jul 2026 13:21:15 +0000 Subject: [PATCH] docs: fix LXC host address 192.168.0.108 -> 192.168.0.99 Revert of A9 address change. The .108 value was inferred from the container VMID (108), not from its actual network config: net0 is ip=dhcp and the container currently holds 192.168.0.99. Requests to .108 fail with "No route to host", making the UI look down while all four compose services are healthy. A9 section in vector_tasks.md is kept as history and flagged stale so the .99 -> .108 replacement is not repeated. Note: the address is DHCP-assigned and may change again; a static IP would be needed to make these docs durable. Hardcoded .99 URLs remain in MobileForm.jsx:49 and HeatmapView.jsx:73 (tracked in vector_tasks.md, untouched here). Co-Authored-By: Claude Opus 5 (1M context) --- DEPLOY.md | 14 +++++++------- FRONTEND_README.md | 8 ++++---- PSYCHOTYPE_API.md | 4 ++-- PSYCHOTYPE_SUMMARY.md | 16 ++++++++-------- SERVICES_README.md | 4 ++-- vector_tasks.md | 6 ++++-- 6 files changed, 27 insertions(+), 25 deletions(-) diff --git a/DEPLOY.md b/DEPLOY.md index 547f50b..7832333 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -2,24 +2,24 @@ ## Текущее состояние -Проект развернут на LXC 108 (Lab) по адресу: **192.168.0.108** +Проект развернут на LXC 108 (Lab) по адресу: **192.168.0.99** ## Доступ к сервисам -- **Backend API**: http://192.168.0.108:8000 - - Swagger документация: http://192.168.0.108:8000/docs - - ReDoc: http://192.168.0.108:8000/redoc +- **Backend API**: http://192.168.0.99:8000 + - Swagger документация: http://192.168.0.99:8000/docs + - ReDoc: http://192.168.0.99:8000/redoc -- **Frontend**: http://192.168.0.108:3000 +- **Frontend**: http://192.168.0.99:3000 -- **Adminer** (управление БД): http://192.168.0.108:8080 +- **Adminer** (управление БД): http://192.168.0.99:8080 - Система: PostgreSQL - Сервер: postgres - Пользователь: postgres - Пароль: postgres - База данных: vector_mchs -- **PostgreSQL**: 192.168.0.108:5432 +- **PostgreSQL**: 192.168.0.99:5432 ## Управление проектом diff --git a/FRONTEND_README.md b/FRONTEND_README.md index 11ee656..c0bf092 100644 --- a/FRONTEND_README.md +++ b/FRONTEND_README.md @@ -45,10 +45,10 @@ ## Доступ -- Десктоп: http://192.168.0.108:3000/admin -- Мобильная форма: http://192.168.0.108:3000/mobile -- API Backend: http://192.168.0.108:8000 -- Adminer: http://192.168.0.108:8080 +- Десктоп: http://192.168.0.99:3000/admin +- Мобильная форма: http://192.168.0.99:3000/mobile +- API Backend: http://192.168.0.99:8000 +- Adminer: http://192.168.0.99:8080 ## Responsive дизайн diff --git a/PSYCHOTYPE_API.md b/PSYCHOTYPE_API.md index 4b2aed1..f26e3fb 100644 --- a/PSYCHOTYPE_API.md +++ b/PSYCHOTYPE_API.md @@ -76,7 +76,7 @@ ### Пример 1: Доминантный тип ```bash -curl -X POST http://192.168.0.108:8000/api/v1/analyze/psychotype \ +curl -X POST http://192.168.0.99:8000/api/v1/analyze/psychotype \ -H "Content-Type: application/json" \ -d '{ "stress_reaction": "active", @@ -95,7 +95,7 @@ curl -X POST http://192.168.0.108:8000/api/v1/analyze/psychotype \ ### Пример 2: Тревожный тип ```bash -curl -X POST http://192.168.0.108:8000/api/v1/analyze/psychotype \ +curl -X POST http://192.168.0.99:8000/api/v1/analyze/psychotype \ -H "Content-Type: application/json" \ -d '{ "stress_reaction": "cry", diff --git a/PSYCHOTYPE_SUMMARY.md b/PSYCHOTYPE_SUMMARY.md index 47dca84..17423e6 100644 --- a/PSYCHOTYPE_SUMMARY.md +++ b/PSYCHOTYPE_SUMMARY.md @@ -2,7 +2,7 @@ **Дата:** 2026-05-01 **Проект:** SAR-MCHS (Search and Rescue Management System) -**Сервер:** LXC 108 (192.168.0.108) +**Сервер:** LXC 108 (192.168.0.99) ## ✅ Выполненные задачи @@ -48,10 +48,10 @@ ## 🌐 Доступ к сервисам -- **Frontend:** http://192.168.0.108:3000 -- **Backend API:** http://192.168.0.108:8000 -- **API Docs:** http://192.168.0.108:8000/docs -- **Adminer (БД):** http://192.168.0.108:8080 +- **Frontend:** http://192.168.0.99:3000 +- **Backend API:** http://192.168.0.99:8000 +- **API Docs:** http://192.168.0.99:8000/docs +- **Adminer (БД):** http://192.168.0.99:8080 ## 📋 Структура данных @@ -81,7 +81,7 @@ ### Пример запроса ```bash -curl -X POST http://192.168.0.108:8000/api/v1/analyze/psychotype \ +curl -X POST http://192.168.0.99:8000/api/v1/analyze/psychotype \ -H "Content-Type: application/json" \ -d '{ "stress_reaction": "cry", @@ -161,10 +161,10 @@ adjusted_prob = base_prob * modifiers['zone_0_500'] pct exec 108 -- bash /root/test_psychotype_flow.sh # Проверка frontend -curl http://192.168.0.108:3000 +curl http://192.168.0.99:3000 # Проверка API -curl http://192.168.0.108:8000/api/v1/analyze/psychotype \ +curl http://192.168.0.99:8000/api/v1/analyze/psychotype \ -H "Content-Type: application/json" \ -d '{"stress_reaction":"active","group_role":"leader","risk_taking":"high","unfamiliar_env":"explore"}' ``` diff --git a/SERVICES_README.md b/SERVICES_README.md index 9d6a8af..aaa97e4 100644 --- a/SERVICES_README.md +++ b/SERVICES_README.md @@ -149,7 +149,7 @@ ANTHROPIC_API_KEY=your_api_key_here ### Тест Claude Service ```bash -curl -X POST http://192.168.0.108:8000/api/v1/analyze/text \ +curl -X POST http://192.168.0.99:8000/api/v1/analyze/text \ -H "Content-Type: application/json" \ -d '{ "age": 65, @@ -164,7 +164,7 @@ curl -X POST http://192.168.0.108:8000/api/v1/analyze/text \ ### Тест Combined Analysis ```bash -curl -X POST http://192.168.0.108:8000/api/v1/analyze/combined \ +curl -X POST http://192.168.0.99:8000/api/v1/analyze/combined \ -H "Content-Type: application/json" \ -d '{ "age": 65, diff --git a/vector_tasks.md b/vector_tasks.md index 7eb4315..bab98bd 100644 --- a/vector_tasks.md +++ b/vector_tasks.md @@ -2,7 +2,7 @@ **Проект:** ВЕКТОР (Система определения приоритетных направлений поиска, SAR/МЧС) **Стек:** FastAPI + PostgreSQL 16 + React (CRA), docker-compose -**Расположение:** LXC 108 (`Lab`, 192.168.0.108), путь `/root/vector` +**Расположение:** LXC 108 (`Lab`, 192.168.0.99), путь `/root/vector` **Дата анализа:** 2026-07-21 **Состояние на момент анализа:** git чистый, ветка `master`, `126 passed, 26 skipped` (async-тесты пропущены — нет `pytest-asyncio`). @@ -333,7 +333,9 @@ PYTHONPATH=/root/vector python -m pytest backend/tests -q - **Тип:** naming / консистентность документации - **Сложность:** atomic -> Канон (сверено с `docker-compose.yml` и реальным LXC): адрес **192.168.0.108**, БД **vector_mchs**, путь проекта **/root/vector**. +> ⚠️ УСТАРЕЛО (2026-07-25): канон ниже оказался неверным — адрес **192.168.0.108** взят из номера VMID, а не из реальной сети. Контейнер на DHCP и фактически имеет **192.168.0.99**; замена .99 → .108 была ошибочной и откачена. Раздел сохранён как история выполненной задачи — не выполнять повторно. + +> Канон (исходный, НЕВЕРНЫЙ): адрес **192.168.0.108**, БД **vector_mchs**, путь проекта **/root/vector**. **PROMPT:**