Commit graph

2 commits

Author SHA1 Message Date
Benjamin Slingo 3cf60dbad1 Security improvements and architecture cleanup
- Remove hardcoded production paths for open source security
- Require INPUT_DIR and OUTPUT_DIR environment variables
- Remove organizational references from examples
- Clean up old deployment code with personal info
- Improve maintainability with proper env var validation
2025-09-08 12:09:58 -04:00
Benjamin Slingo 8c84b69028 Major refactoring: Event-driven livestream archiver
- Complete removal of polling loops for better performance
- Event-driven file processing with stability tracking
- Proper structured logging with tracing
- Graceful shutdown handling (SIGTERM/SIGINT)
- Disk space monitoring (5GB minimum threshold)
- Production-ready paths for RTSDA deployment
- Shared video_processing crate integration
- Filename compatibility improvements (| → () separator)
- Environment-based configuration
- Comprehensive error handling and logging

Performance improvements:
- No more wasteful 1-2 second polling
- Only processes files when filesystem events occur
- Proper resource management and cleanup

Production features:
- Default paths: /home/rockvilleav/.rtsda/livestreams → /media/archive/jellyfin/livestreams
- Configurable via INPUT_DIR and OUTPUT_DIR environment variables
- Structured logging configurable via RUST_LOG
- Hardware-accelerated video conversion (Intel QSV)
- NFO file generation for Jellyfin compatibility
2025-09-06 18:27:59 -04:00