How jonssonyan/h-ui works
Project type and purpose
• This is a full-stack, web-based administration panel (“H UI”) for managing Hysteria2 VPN servers.
• Frontend: Vue3 + Vite + Element-Plus application.
• Backend: Go monolith offering RESTful APIs, process management, scheduling, persistence, and integration with Hysteria2 and Telegram.
File structure
• Top‐level:
• cmd/, main.go – CLI entrypoints for server, version, reset.
• controller/, router/, middleware/, service/, dao/, model/ – classic layered architecture (HTTP routing → controllers → business services → data access → SQLite).
• proxy/ & util/ – wrappers around Hysteria2 processes and auxiliary functions.
• frontend/ – complete Vue3 SPA.
• docker-compose.yml, Dockerfile, install scripts – containerized deployment.
• Data: docs/sql/h_ui_db.sql (schema), local/… (i18n JSON), volumes mounted in docker-compose for /h-ui/data, /h-ui/logs, /h-ui/export.
• External integrations: Telegram notifications (service/telegram.go); scheduled tasks (service/cron.go, middleware/cron.go).
README for additional insights
• Purpose: user management, traffic limits, Hysteria2 config/version management, logs, monitoring, multilingual.
• Deployment: bare‐metal with systemd or Docker, configurable volumes and ports.