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) <noreply@anthropic.com>
This commit is contained in:
root
2026-07-25 13:21:15 +00:00
parent 3a0d2b0c2d
commit b30ce86fa9
6 changed files with 27 additions and 25 deletions
+7 -7
View File
@@ -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 - **Backend API**: http://192.168.0.99:8000
- Swagger документация: http://192.168.0.108:8000/docs - Swagger документация: http://192.168.0.99:8000/docs
- ReDoc: http://192.168.0.108:8000/redoc - 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 - Система: PostgreSQL
- Сервер: postgres - Сервер: postgres
- Пользователь: postgres - Пользователь: postgres
- Пароль: postgres - Пароль: postgres
- База данных: vector_mchs - База данных: vector_mchs
- **PostgreSQL**: 192.168.0.108:5432 - **PostgreSQL**: 192.168.0.99:5432
## Управление проектом ## Управление проектом
+4 -4
View File
@@ -45,10 +45,10 @@
## Доступ ## Доступ
- Десктоп: http://192.168.0.108:3000/admin - Десктоп: http://192.168.0.99:3000/admin
- Мобильная форма: http://192.168.0.108:3000/mobile - Мобильная форма: http://192.168.0.99:3000/mobile
- API Backend: http://192.168.0.108:8000 - API Backend: http://192.168.0.99:8000
- Adminer: http://192.168.0.108:8080 - Adminer: http://192.168.0.99:8080
## Responsive дизайн ## Responsive дизайн
+2 -2
View File
@@ -76,7 +76,7 @@
### Пример 1: Доминантный тип ### Пример 1: Доминантный тип
```bash ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"stress_reaction": "active", "stress_reaction": "active",
@@ -95,7 +95,7 @@ curl -X POST http://192.168.0.108:8000/api/v1/analyze/psychotype \
### Пример 2: Тревожный тип ### Пример 2: Тревожный тип
```bash ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"stress_reaction": "cry", "stress_reaction": "cry",
+8 -8
View File
@@ -2,7 +2,7 @@
**Дата:** 2026-05-01 **Дата:** 2026-05-01
**Проект:** SAR-MCHS (Search and Rescue Management System) **Проект:** 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 - **Frontend:** http://192.168.0.99:3000
- **Backend API:** http://192.168.0.108:8000 - **Backend API:** http://192.168.0.99:8000
- **API Docs:** http://192.168.0.108:8000/docs - **API Docs:** http://192.168.0.99:8000/docs
- **Adminer (БД):** http://192.168.0.108:8080 - **Adminer (БД):** http://192.168.0.99:8080
## 📋 Структура данных ## 📋 Структура данных
@@ -81,7 +81,7 @@
### Пример запроса ### Пример запроса
```bash ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"stress_reaction": "cry", "stress_reaction": "cry",
@@ -161,10 +161,10 @@ adjusted_prob = base_prob * modifiers['zone_0_500']
pct exec 108 -- bash /root/test_psychotype_flow.sh pct exec 108 -- bash /root/test_psychotype_flow.sh
# Проверка frontend # Проверка frontend
curl http://192.168.0.108:3000 curl http://192.168.0.99:3000
# Проверка API # Проверка 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" \ -H "Content-Type: application/json" \
-d '{"stress_reaction":"active","group_role":"leader","risk_taking":"high","unfamiliar_env":"explore"}' -d '{"stress_reaction":"active","group_role":"leader","risk_taking":"high","unfamiliar_env":"explore"}'
``` ```
+2 -2
View File
@@ -149,7 +149,7 @@ ANTHROPIC_API_KEY=your_api_key_here
### Тест Claude Service ### Тест Claude Service
```bash ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"age": 65, "age": 65,
@@ -164,7 +164,7 @@ curl -X POST http://192.168.0.108:8000/api/v1/analyze/text \
### Тест Combined Analysis ### Тест Combined Analysis
```bash ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"age": 65, "age": 65,
+4 -2
View File
@@ -2,7 +2,7 @@
**Проект:** ВЕКТОР (Система определения приоритетных направлений поиска, SAR/МЧС) **Проект:** ВЕКТОР (Система определения приоритетных направлений поиска, SAR/МЧС)
**Стек:** FastAPI + PostgreSQL 16 + React (CRA), docker-compose **Стек:** 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 **Дата анализа:** 2026-07-21
**Состояние на момент анализа:** git чистый, ветка `master`, `126 passed, 26 skipped` (async-тесты пропущены — нет `pytest-asyncio`). **Состояние на момент анализа:** git чистый, ветка `master`, `126 passed, 26 skipped` (async-тесты пропущены — нет `pytest-asyncio`).
@@ -333,7 +333,9 @@ PYTHONPATH=/root/vector python -m pytest backend/tests -q
- **Тип:** naming / консистентность документации - **Тип:** naming / консистентность документации
- **Сложность:** atomic - **Сложность:** 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:** **PROMPT:**