From 660d5c69d78b9a37bae80763a32ef1432a2d591f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 11 Jul 2026 16:07:34 +0400 Subject: [PATCH] =?UTF-8?q?History:=20=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- History/2026-07-11-initial-setup.md | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 History/2026-07-11-initial-setup.md diff --git a/History/2026-07-11-initial-setup.md b/History/2026-07-11-initial-setup.md new file mode 100644 index 0000000..21bafb6 --- /dev/null +++ b/History/2026-07-11-initial-setup.md @@ -0,0 +1,43 @@ +# DrHider — Managed Flask на pythonk8s + +**Дата:** 2026-07-11 +**URL:** https://drhider.pythonk8s.dev.nubes.ru/ +**Репозиторий:** https://gitea.services.ngcloud.ru/Nail/drhider + +## Структура проекта + +``` +drhider/ +├── Dockerfile # python:3.12-slim, gunicorn + gevent :5000 +├── requirements.txt # flask, gunicorn, gevent, python-docx, pdfplumber, httpx +├── .gitignore +├── .gitea/workflows/deploy.yaml # CI (linux_amd64) +├── drhider.py # ядро обфускации (скопировано с ВМ contracts) +├── drhider_server.py # HTTP-сервер (скопировано с ВМ contracts) +├── site/ +│ ├── app.py # Flask: GET /, POST /api/drhider, /health +│ ├── templates/index.html +│ └── static/favicon.svg +└── History/ +``` + +## API + +| Метод | Путь | Описание | +|---|---|---| +| GET | / | Веб-интерфейс | +| GET | /health | `{"ok": true, "version": "..."}` | +| POST | /api/drhider | multipart files → ZIP с обфусцированными документами | + +## Переменные окружения + +| Переменная | Назначение | По умолчанию | +|---|---|---| +| `LLM_API_KEY` / `LLM_KEY` | Ключ API для LLM | — | +| `LLM_URL` | URL LLM API | `https://api.aillm.ru/v1/chat/completions` | +| `LLM_MODEL` | Модель | `gpt-oss-120b` | + +## Коммиты + +- `a455f9d` — Начальная структура managed Flask + drhider +- `a89df86` — Managed Flask: app.py, index.html, CI workflow