Add leaderboard API and update website

- /api/leaderboard - returns top 10 players
- /api/stats - returns total players/games
- /api/health - health check
- Website now shows live leaderboard with auto-refresh
- Nginx proxies /api to container port 8080
This commit is contained in:
Greg Hendrickson
2026-01-27 21:29:35 +00:00
parent 6b6626e2bc
commit cd12435a95
4 changed files with 146 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ services:
build: .
ports:
- "22:22"
- "8080:8080"
environment:
- SHELLMATE_SSH_PORT=22
- SHELLMATE_REDIS_URL=redis://redis:6379