21 Commits

Author SHA1 Message Date
zsai001
c0aef1b8cc update to 3.2.21 2025-12-30 15:12:31 +08:00
zsai001
bd61fbdc84 feat(agent): agent-side ping aggregation for all granularities
- Agent collects ping every 5 seconds (matching metrics interval)
- Agent maintains local aggregations for 2min, 15min, hourly, daily buckets
- Server stores agent-computed aggregations directly (no server-side aggregation)
- Supports 1H (5sec), 24H (2min), 7D (15min), 30D (hourly), 1Y (daily) views
- Average latency becomes more accurate as samples accumulate
2025-12-24 02:14:31 +08:00
zsai001
a3db97b12e refactor project. 2025-12-22 10:20:38 +08:00
zsai001
5ffca8f6a8 update doc site 2025-12-08 06:34:31 +08:00
zsai001
73ce009093 fix: use systemd-run for upgrade restart to survive cgroup kill 2025-12-06 17:13:02 +08:00
zsai001
f6c83b15ae feat: add online users count and force upgrade
- Track unique visitors by IP in dashboard WebSocket
- Add /api/online-users endpoint for visitor count
- Display online users count in dashboard footer
- Add force reinstall button when version is up to date
- Update install scripts to support --force flag
- Add i18n translations for online users (all 9 languages)
2025-12-06 16:41:29 +08:00
zsai001
501626e84f feat: improve Windows PowerShell install scripts
- Remove special handling for Local nodes
- Add auto execution policy bypass and UAC elevation
- Create separate agent-upgrade.ps1 and agent-uninstall.ps1 for clean irm | iex usage
- Update README with simplified Windows commands
- Update Settings.tsx install command generation
2025-12-05 00:34:46 +08:00
zsai001
dd24419f8f update docs page. 2025-12-04 22:03:05 +08:00
zsai001
c1e5c1a52d remove rust files, fix agent install 2025-12-04 20:07:38 +08:00
zsai001
3cd8580672 fix(install.sh): Fail gracefully when GitHub API is unavailable 2025-12-03 02:08:09 +08:00
zsai001
7276dc6c33 fix(scripts): Fail gracefully when GitHub API is unavailable
- Remove default fallback version (v1.0.0/v1.3.0) when API fails
- Exit with error message instead of using incorrect version
- Prevents downloading non-existent versions when rate limited
- Add better error message explaining rate limiting issue
2025-12-03 02:07:52 +08:00
zsai001
a72e0c4ce6 fix(install): Improve web assets download with fallback to zip format 2025-12-03 01:31:18 +08:00
zsai001
a394bf964f fix(scripts): Improve download reliability with retry and better error handling
- Add retry logic (3 attempts) for downloads
- Use curl -L to follow redirects properly
- Verify downloaded file is not empty
- Show better error messages on failure
2025-12-03 01:21:26 +08:00
zsai001
fd058aa8a5 fix(scripts): Update install scripts for Go binary naming convention
- Change architecture naming from x86_64/aarch64 to amd64/arm64
- Remove musl suffix (Go binaries are statically linked by default)
- Add FreeBSD support
- Sync docs/ scripts with scripts/
2025-12-03 01:14:41 +08:00
zsai001
f8a3301a6e feat: add Windows agent support and IP reporting
- Add Windows support for agent (config paths, gateway detection, service install/uninstall)
- Add Windows PowerShell installation script (agent.ps1)
- Add IP address collection and reporting from agent
- Server captures client IP from WebSocket connection as fallback
- Display agent IP in Settings page
- Update Quick Install section with Windows/Linux tabs
2025-12-02 19:59:29 +08:00
zsai001
fefd36264e fix: 使用 musl 静态链接解决 glibc 兼容性问题
- 添加 build-release.sh 构建脚本,支持 musl 静态编译
- 更新 agent.sh 和 install.sh 使用 musl 二进制文件
- 更新 GitHub Actions 工作流自动构建 musl 版本
- musl 静态二进制文件可在任意 Linux 系统运行,无需依赖特定 glibc 版本
2025-12-01 23:54:52 +08:00
zsai001
05c33eb32e refactor: simplify agent installer to use Rust binary only
- Remove shell-based agent implementation
- agent.sh now downloads and installs Rust binary
- Simplify README and docs
- Remove redundant install-agent.sh scripts
2025-12-01 23:27:14 +08:00
zsai001
e22146c51f feat: add Rust agent with auto-reconnect WebSocket
- Add vstats-agent Rust binary (~2MB) for reliable metrics collection
- Implement WebSocket client with exponential backoff reconnection
- Add CLI commands: run, register, install, uninstall, show-config
- Support systemd service installation on Linux
- Support launchd service installation on macOS
- Update GitHub Actions to build agent for all platforms
- Fix shell agent broken pipe errors with reconnection loop
- Update docs and README with Rust agent installation instructions
2025-12-01 22:47:44 +08:00
zsai001
12489f7c9a feat: major refactor and new features
- Refactor: Split main.rs into modules (config, db, types, handlers, websocket, collector, middleware, state)
- Feature: Add grid view for server list on Dashboard
- Feature: Add 1Y (yearly) time range for history charts
- Feature: Show local server metrics on Dashboard (no demo data)
- Feature: Light/Dark theme support with proper styling
- Fix: Auth token persistence across page refreshes
- Fix: Route parameter syntax for Axum 0.7
- Update: start-dev.sh now rebuilds frontend and backend
- Update: Better gitignore for runtime files
2025-12-01 22:27:14 +08:00
zsai001
541a220f98 fix: add static file serving and macOS support
- Server: Add static file serving with ServeDir
- Server: Improve web directory path resolution
- Server: Add fallback HTML when web assets not found
- Server: Rename config file to vstats-config.json
- Install script: Add macOS launchd service support
- Install script: Add macOS-specific commands and paths
- Add development scripts (start-dev.sh, test-local.sh)
- Enable tower util feature for service_fn
2025-12-01 21:13:39 +08:00
zsai001
f5779e5e52 add new files. 2025-12-01 17:19:46 +08:00