Add option to specify remote domains for image resizing#820
Add option to specify remote domains for image resizing#820paulrobertlloyd merged 1 commit intomainfrom
Conversation
|
I will test this out and report back, thank you for adding this feature/option! Edit: I don't know how to test this out, do I have to be on The PR mentions setting a |
48118c8 to
07d51ee
Compare
Hmmm, not sure there is an easy way to test this. I’ll merge it in, then include it in the next beta release. |
|
Thank you for the update. I will wait for the next beta, update, test and report back. |
Fixes #814.
Currently the image resizing plugin only supports resizing remote images saved to the destination publication URL (
publication.me). However, it’s possible to configure Indiekit such that files can be saved to other destinations, such as S3-compatible bucket storage.This PR adds a
domainsoption which gets passed to the same option onipxHttpStorage()which controls which remote URLs image resizing is allowed for.For example, if your website is at
https://website.example, but media files are saved tohttps://media.example, you could use the following configuration options: