Add per-user album art override model and migration
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QHPkt2v797pphGCFKfTFmv
This commit is contained in:
1 parent
48fba1e0e2
commit
d0b8e1ed22
4 files changed
+92
No files matched your search
@@ -67,6 +67,8 @@ class Config:
|
||||
# Downloaded art is kept here, named by the album_art row's id. Needs write access
|
||||
# from the worker (which downloads it) and read access from the api (which serves it).
|
||||
ART_STORAGE_DIR = os.environ.get("ART_STORAGE_DIR", "var/album-art")
|
||||
# Largest image a user may upload as their own album art.
|
||||
ART_UPLOAD_MAX_BYTES = int(os.environ.get("ART_UPLOAD_MAX_BYTES", str(5 * 1024 * 1024)))
|
||||
|
||||
IMPORT_MAX_BYTES = int(os.environ.get("IMPORT_MAX_BYTES", str(200 * 1024 * 1024)))
|
||||
MAX_CONTENT_LENGTH = IMPORT_MAX_BYTES + 1024 * 1024 # uploads are the largest requests
|
||||
|
||||
Reference in new issue
Block a user