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:
@@ -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
|
||||
|
||||
## Управление проектом
|
||||
|
||||
|
||||
+4
-4
@@ -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 дизайн
|
||||
|
||||
|
||||
+2
-2
@@ -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",
|
||||
|
||||
@@ -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"}'
|
||||
```
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
+4
-2
@@ -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:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user