🗂️ fix: Disable express-static-gzip for Uploaded Images (#8307)

* Fix scanning of the uploaded images folder on startup

* Re-write tests to pass linting

* Disable image output gzip scan by default

* Add `ENABLE_IMAGE_OUTPUT_GZIP_SCAN` to `.env.example`
This commit is contained in:
Sebastien Bruel 2025-07-12 05:51:53 +09:00 committed by GitHub
parent d2e1ca4c4a
commit 9f44187351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 620 additions and 32 deletions

View file

@ -580,6 +580,10 @@ ALLOW_SHARED_LINKS_PUBLIC=true
# If you have another service in front of your LibreChat doing compression, disable express based compression here
# DISABLE_COMPRESSION=true
# If you have gzipped version of uploaded image images in the same folder, this will enable gzip scan and serving of these images
# Note: The images folder will be scanned on startup and a ma kept in memory. Be careful for large number of images.
# ENABLE_IMAGE_OUTPUT_GZIP_SCAN=true
#===================================================#
# UI #
#===================================================#