You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/docker
Nick Webster a57658d99c
Adding a new config flag to disable pictrs caching for thumbnails (#3897)
* add logic to prevent downloading remote pictrs images

* apply formatting

* Do not attempt a pictrs fetch if the remote image is also on a pictrs instance

* Do not attempt a pictrs fetch if the remote image is also on a pictrs instance and cache_federated_images is false

* Generalising the no caching option to handle all remote images

* rustfmt

* Return None if the URL is not an image

* Updating defaults.hjson

* fixing typo

* Fixing typo

* Skip cloning the Url unless we need to

* using a HEAD request for checking the content type, saving bandwidth/improving perf

* Removing early returns

* Switching back to GET requests for Content-Type because pictrs does not handle HEAD requests

* Simplifying logic and using metadata_image instead of url if we do not get a pictrs thumbnail

* Removing unused import

* Return None as a thumbnail if caching is disabled

* formatting

---------

Co-authored-by: Djones4822 <david.jones4822@gmail.com>
9 months ago
..
federation Version 0.18.1 11 months ago
Dockerfile Add ARM64 Docker image support (#3810) 9 months ago
docker-compose.yml Add workaround for #3102 until cross-compile work complete (#3472) 10 months ago
docker_db_backup.sh make shebangs posix compliant (#2974) 12 months ago
docker_update.sh Add workaround for #3102 until cross-compile work complete (#3472) 10 months ago
lemmy.hjson Adding a new config flag to disable pictrs caching for thumbnails (#3897) 9 months ago
nginx.conf Combine prod and dev docker setups using build-arg (#2739) 1 year ago
test_deploy.sh Adding current domain from settings to CORs. (#3231) 11 months ago