v1.0.89: detailed code comments — all Python files + index.html architecture overview

This commit is contained in:
2026-07-27 22:02:51 +04:00
parent 7180587538
commit 1cc3f6eb7e
9 changed files with 290 additions and 38 deletions
+13 -1
View File
@@ -1,3 +1,14 @@
"""
app-autotest — точка входа Flask-приложения для автотестов Nubes.
Регистрирует три blueprint'а:
- main_bp → / (главная, токен, инфраструктура)
- api_bp → /api/run, /api/status, /api/config [LEGACY]
- api_test_bp → /api/test, /api/params, /api/log (основная логика)
Деплой: Nubes pythonk8s (gunicorn, несколько воркеров).
"""
import os
from flask import Flask
@@ -6,7 +17,8 @@ from routes.main import bp as main_bp
from routes.api import bp as api_bp
from routes.api_test import bp as api_test_bp
VERSION = "1.0.88"
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
VERSION = "1.0.89"
app = Flask(__name__, template_folder="templates", static_folder="static")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")