refactor: centralize cache path logic and add TMPDIR documentation

This commit is contained in:
V1ck3s
2026-01-11 00:24:29 +01:00
committed by Vickes
parent dbb1964f46
commit 61a21b0e0c
4 changed files with 15 additions and 3 deletions

View File

@@ -51,10 +51,11 @@ DOWNLOAD_MODE=Track
# - Permanent: Files are saved to the library permanently and registered in Navidrome
# - Cache: Files are stored in /tmp and automatically cleaned up after CACHE_DURATION_HOURS
# Not registered in Navidrome, ideal for streaming without library bloat
# Note: On Linux/Docker, you can customize cache location by setting TMPDIR environment variable
STORAGE_MODE=Permanent
# Cache duration in hours (optional, default: 1)
# Files older than this duration will be automatically deleted when STORAGE_MODE=Cache
# Based on last access time (updated each time the file is streamed)
# Cache location: /tmp/octo-fiesta-cache (automatic, no configuration needed)
# Cache location: /tmp/octo-fiesta-cache (or $TMPDIR/octo-fiesta-cache if TMPDIR is set)
CACHE_DURATION_HOURS=1