Merge pull request #610 from haiwen/update_thumbnail_server_environment_variable

update:add THUMBNAIL_IMAGE_ORIGINAL_SIZE_LIMIT environment variable in thumbnail server
This commit is contained in:
Daniel Pan 2025-10-22 12:15:15 +08:00 committed by GitHub
commit 799dc90298
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -128,3 +128,8 @@ Placeholder spot for shared volumes. You may elect to store certain persistent i
* /opt/seafile-data/logs: This is the directory for logs.
* /opt/seafile-data/seafile-data: This is the directory for seafile storage (if you use local storage).
* /opt/seafile-data/seahub-data/thumbnail: This is the directory for thumbnail files.
## Common issues when settings up thumbnail server
### Thumbnails cannot be generated for high-resolution images
This is because generating thumbnails for high-resolution images can impact system performance. You can raise the threshold by setting the `THUMBNAIL_IMAGE_ORIGINAL_SIZE_LIMIT` environment variable in the env file; the default is 256 (MB).

View File

@ -19,6 +19,7 @@ services:
- JWT_PRIVATE_KEY=${JWT_PRIVATE_KEY:?Variable is not set or empty}
- SITE_ROOT=${SITE_ROOT:-/}
- INNER_SEAHUB_SERVICE_URL=${INNER_SEAHUB_SERVICE_URL:?Variable is not set or empty}
- THUMBNAIL_IMAGE_ORIGINAL_SIZE_LIMIT=${THUMBNAIL_IMAGE_ORIGINAL_SIZE_LIMIT:-256}
- SEAF_SERVER_STORAGE_TYPE=${SEAF_SERVER_STORAGE_TYPE:-}
- S3_COMMIT_BUCKET=${S3_COMMIT_BUCKET:-}
- S3_FS_BUCKET=${S3_FS_BUCKET:-}