memos/server/router
Johnny 86fab0cf4c fix(fileserver): use streaming for video/audio to prevent memory exhaustion
- Add serveMediaStream() to stream video/audio without loading into memory
- Use http.ServeFile for local files (zero-copy, handles range requests)
- Redirect to S3 presigned URLs for S3-stored media files
- Refactor for better maintainability:
  - Extract constants and pre-compile lookup maps
  - Consolidate duplicated S3 client creation logic
  - Split authentication into focused helper methods
  - Group code by responsibility with section comments
  - Add setSecurityHeaders() and setMediaHeaders() helpers
2026-01-31 22:01:28 +08:00
..
api/v1 fix: add nil check for AnyResponse in WrapUnary method to prevent caching issues 2026-01-29 21:32:54 +08:00
fileserver fix(fileserver): use streaming for video/audio to prevent memory exhaustion 2026-01-31 22:01:28 +08:00
frontend chore: prevent sensitive data caching 2025-12-20 12:33:16 +08:00
rss refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00