feat(conversion): add EPUB to KEPUB conversion service with kepubify

- Install kepubify binary in Dockerfile for on-the-fly conversion
- Add conversion service with caching layer (24hr TTL)
- Support KEPUB downloads through OPDS endpoint
- Cache converted files to reduce processing overhead
- Add environment configuration for cache directory and tool path
This commit is contained in:
2026-02-01 12:15:28 -05:00
parent a0523b2eb9
commit ec5a961f6c
4 changed files with 218 additions and 1 deletions
+9 -1
View File
@@ -17,4 +17,12 @@ TEST_MODE=false
RATE_LIMIT_ENABLED=true
# Number of requests allowed per minute per IP (default: 10)
# Increase for integration testing (e.g., 1000)
REQUESTS_PER_MINUTE=10
REQUESTS_PER_MINUTE=10
# Conversion Service Configuration
# Directory for caching converted files (KEPUB, etc.)
BOOKMANN_CONVERSION_CACHE_DIR=/var/bookmann/cache/kepub
# Conversion tool to use (kepubify or ebook-convert)
BOOKMANN_CONVERSION_TOOL=/usr/bin/kepubify
# Cache TTL for converted files (e.g., 24h, 12h, 48h)
BOOKMANN_CONVERSION_CACHE_TTL=24h