memos/server
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
..
auth refactor: migrate HOST roles to ADMIN 2026-01-20 23:38:30 +08:00
router fix(fileserver): use streaming for video/audio to prevent memory exhaustion 2026-01-31 22:01:28 +08:00
runner refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
server.go refactor: remove mode flag and introduce explicit demo flag 2026-01-20 22:58:33 +08:00