ponshu-room-lite/lib
Ponshu Developer 10f772942a feat: Implement Redis persistence for Synology Proxy rate limiting
Infrastructure Improvements:
- Add Redis container to tools/proxy/docker-compose.yml with AOF persistence
- Migrate rate limiting from in-memory to Redis-based storage
- Add TTL-based daily quota reset (expires at midnight)
- Implement health checks for Redis and Proxy containers

Proxy Server Changes (tools/proxy/server.js):
- Add redis client with async connection handling
- Replace usageStore object with Redis GET/INCR/EXPIRE operations
- Add responseMimeType: 'application/json' to Gemini client config
  (fixes Markdown response bug)
- Add comprehensive debug logging for JSON parsing issues

Flutter App Configuration:
- Change Secrets.useProxy defaultValue from false to true
- Development builds now use local Synology proxy by default
- Release builds can override with --dart-define=USE_PROXY=false

Documentation:
- Add REDIS_MIGRATION_GUIDE.md with step-by-step migration instructions
- Add tools/proxy/README.md with architecture overview
- Create .env.example template for secrets configuration
- Update PROJECT_TODO.md to mark H3 (Proxy永続化) as in progress

Dependencies:
- Add redis@^4.7.0 to package.json

This resolves the critical tech debt where rate limits reset on container restart.
Redis AOF persistence ensures quota tracking survives server reboots.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-21 19:35:59 +09:00
..
constants feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
l10n feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
models fix: Resolve all flutter analyze warnings (39 -> 0 issues) 2026-02-21 10:32:02 +09:00
providers feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
screens fix: Resolve all flutter analyze warnings (39 -> 0 issues) 2026-02-21 10:32:02 +09:00
services fix: Resolve all flutter analyze warnings (39 -> 0 issues) 2026-02-21 10:32:02 +09:00
theme feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
utils feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
widgets fix: Resolve all flutter analyze warnings (39 -> 0 issues) 2026-02-21 10:32:02 +09:00
main.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
secrets.dart feat: Implement Redis persistence for Synology Proxy rate limiting 2026-02-21 19:35:59 +09:00
secrets.local.dart.example feat: Add Bearer Token authentication to AI Proxy and disable CORS 2026-02-16 11:34:00 +09:00