imgproxy icon indicating copy to clipboard operation
imgproxy copied to clipboard

Asking for Help: Nginx Configuration for Rewrites

Open danielslyman opened this issue 11 months ago • 2 comments

Hello guys,

I would like to host imgproxy and have several websites serve optimized images. As far as I understand I would need to change the original URLs to point to the imgproxy instance and fetch the image from the origin. What is the recommended way of implementing this? I so far was unable to figure out how to create a nginx rewrite rule that simply works. Could someone help me out?

danielslyman avatar Apr 03 '24 07:04 danielslyman

Here's an haproxy path-rewrite:

^(.*) /_/plain/http://origin.address/\1

routehero avatar Apr 05 '24 13:04 routehero

Thanks but I am just looking to implement this for WordPress sites that I'm running on nginx. There must be a way to easily rewrite the requests or am I mistaken?

danielslyman avatar Apr 26 '24 14:04 danielslyman