5 Commits

Author SHA1 Message Date
orris-inc
3c3b00a78e feat(admin): add traffic statistics API for admin dashboard
Add comprehensive traffic statistics endpoints for admin users:

API Endpoints:
- GET /admin/traffic-stats/overview - Platform-wide traffic overview
- GET /admin/traffic-stats/users - Traffic stats by user (paginated)
- GET /admin/traffic-stats/subscriptions - Traffic stats by subscription
- GET /admin/traffic-stats/nodes - Traffic stats by node
- GET /admin/traffic-stats/ranking/users - Top users by traffic
- GET /admin/traffic-stats/ranking/subscriptions - Top subscriptions
- GET /admin/traffic-stats/trend - Traffic trend with hour/day/month granularity

Implementation:
- Extend SubscriptionUsageRepository with aggregation methods
- Add admin domain with DTOs and use cases
- Add TrafficStatsHandler for HTTP endpoints
- Register routes with admin authentication

Also update docker-compose.yml to use ORRIS_ prefixed env vars
and simplify .env.example configuration
2025-12-22 16:22:32 +08:00
orris-inc
3c51b625c4 chore: simplify config, update docker-compose, remove sdk from tracking
- Simplify config.example.yaml by removing verbose comments and unused options
- Update docker-compose.yml to add Caddy reverse proxy, MySQL, and Redis services
- Use bind mounts instead of named volumes for easier data migration
- Remove sdk/ directory from git tracking (already in .gitignore)
2025-12-22 15:24:01 +08:00
orris-inc
af46639804 feat(docker): add frontend service with Caddy reverse proxy 2025-12-05 15:22:41 +08:00
orris-inc
d2588a20bb feat(docker): add Docker build support with GitHub Actions
- Add Dockerfile with multi-stage build for minimal Alpine image
- Add GitHub Actions workflow to build and push images to ghcr.io on tags
- Update docker-compose.yml with orris app service, Redis, and bind mounts
- Add docker-build, docker-build-multi, docker-push commands to Makefile
- Add data/ directory to .gitignore for local volume storage
2025-12-05 15:17:08 +08:00
orris-inc
f1593295f8 init user 2025-10-17 15:27:43 +08:00