R
R
romaro2022-01-12 02:23:40
Data storage
romaro, 2022-01-12 02:23:40

How to make Minio friends with ImgProxy?

Ultimately, I need to ensure that the file that is in Minio would be resized by a link of the form:

http://imgproxy.example.com/AfrOrF3gWeDA6VOlDG4TzxMv39O7MXnF4CXpKUwGqRM/preset:sharp/resize:fill:300:400:0/gravity:sm/plain/http://example.com/images/[email protected]


The sparse documentation seems to hint that files can be obtained from Minio directly.

But I don't understand exactly how the source-url should look in order for Minio to give the desired file. In what form to transfer the identifier of this file and what to write in IMGPROXY_S3_ENDPOINT.

Maybe someone already passed this quest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romaro, 2022-01-13
@romaro

If Minio is on a docker host, then starting a container with imgproxy might look like this:

docker run -e IMGPROXY_S3_ENDPOINT="http://127.0.0.1:9000" \
-e IMGPROXY_USE_S3=true \
-e AWS_ACCESS_KEY_ID=admin \
-e AWS_SECRET_ACCESS_KEY=miniotest \
--name imgproxy \
--network="host" \
darthsim/imgproxy

The --network="host" network parameter allows imgproxy to reach Minio files using resource links like 127.0.0.1:9000/bucket_name/file_key

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question