Documentation - Three levels: DOCS/General (overview, configuration), DOCS/Deployment (choose a method, first steps), details per method in Containers/ and System_Services/; new root README and DOCS/README map. - Remove superseded pages (Deployment.md, Deployment_Docker/Native.md, Index.md); split the two scenario guides by section. - Isolate the Timeweb/Hysteria2 records in DEPLOYMENTS/timeweb-hysteria2/ (not linked from DOCS, listed in .graphifyignore). - Add DOCS/code_review/ with a time-stamped analysis of the code base. Gatherer (BUG-02, BUG-03) - Session key (CN, address, connected_since_ts), baseline from the active_sessions snapshot, grace period for sessions missing from the status. - Status file integrity (TITLE/TIME/END) and freshness; a torn read skips the tick. - Cache applied after commit; main loop survives exceptions, backs off, and stops cleanly on SIGTERM/SIGINT; new client rows start with the first frame's totals; five tests. JWT signing key (SEC-01) - No built-in default: Core and Profiler refuse to start with a missing, placeholder or short (< 32) key; shipped config.ini has an empty value. - Same rule in install.sh, update.sh (issues a new key when missing or weak), docker lib/entrypoint; five tests, conftest.py for the test key. Each change has a plan and a summary under DOCS/Changes/. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
UI Architecture
The frontend is a Single Page Application (SPA) built with Vue 3 and Vite. It is located in APP_UI/.
Technology Stack
- Framework: Vue 3 (Composition API, Script Setup)
- Build Tool: Vite
- Styling: Bootstrap 5 + Custom CSS (
src/assets/main.css) - Routing: Vue Router
- HTTP Client: Axios
Key Features
- Responsive Design: Mobile-friendly sidebar and layouts.
- Theme Support: Built-in Light/Dark mode toggling.
- Real-Time Data: Polls the Monitoring API (
APP_CORE) for live statistics. - Authentication: JWT-based auth flow with support for 2FA.
Configuration
Run-time configuration is loaded from /public/config.json. This allows the Vue app to be built once and deployed to any environment.
File Structure (config.json):
{
"api_base_url": "/api/v1", // Proxy path to Core Monitoring API
"profiles_api_base_url": "/api", // Proxy path to Profiler API
"refresh_interval": 30000 // Poll interval in ms
}
Integration
The UI is served by Nginx in production and proxies API requests to:
/api/v1/-> APP_CORE (Flask, Port 5000)/profiles-api/-> APP_PROFILER (FastAPI, Port 8000)
See Deployment Guide for Nginx configuration details.