a57658d99c
* 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>
28 lines
590 B
Text
28 lines
590 B
Text
{
|
|
# for more info about the config, check out the documentation
|
|
# https://join-lemmy.org/docs/en/administration/configuration.html
|
|
|
|
# This is a minimal lemmy config for the dev / main branch. Do not use for a
|
|
# release / stable version.
|
|
|
|
setup: {
|
|
admin_username: "lemmy"
|
|
admin_password: "lemmylemmy"
|
|
site_name: "lemmy-dev"
|
|
}
|
|
database: {
|
|
host: postgres
|
|
}
|
|
|
|
hostname: "localhost"
|
|
bind: "0.0.0.0"
|
|
port: 8536
|
|
|
|
pictrs: {
|
|
url: "http://pictrs:8080/"
|
|
# api_key: "API_KEY"
|
|
cache_remote_images: true
|
|
}
|
|
|
|
#opentelemetry_url: "http://otel:4137"
|
|
}
|