Add env var to enable/disable thumbnail generation

This commit is contained in:
Joachim
2021-06-07 19:52:25 +02:00
parent 7ed2ed116a
commit 2731ea9aa9
6 changed files with 117 additions and 103 deletions

View File

@ -187,4 +187,5 @@ USER_AGENT = "%s (BookWyrm/%s; +https://%s/)" % (
)
# Imagekit generated thumbnails
ENABLE_THUMBNAIL_GENERATION = env.bool("ENABLE_THUMBNAIL_GENERATION", False)
IMAGEKIT_CACHEFILE_DIR = "thumbnails"