Forem Creators and Builders 🌱

9comindia
9comindia

Posted on

Role of imgproxy in Forem selfhost

I would like to understand what is the role of imgproxy in FOREM selfhost..

is it for creating urls? or for maintaining the image cache? or to define the quality of user uploaded images?

Can someone throw light on this? thanks.

Top comments (5)

Collapse
 
maestromac profile image
Mac Siri

Imgproxy is for resizing the images. Instead of depending on rails server, imgproxy is stand-alone service that is lightweight and more process efficient . Please take a look at their documentation imgproxy.net/

Collapse
 
9comindia profile image
9comindia

how do we set the preferred quality or resizing dimensions for images before uploading them to aws S3 on Forem?

Collapse
 
maestromac profile image
Mac Siri • Edited

Sorry I missed this earlier. That's currently not possible. You might get by by resizing the image on your computer first before uploading.

Thread Thread
 
9comindia profile image
9comindia

Ok fine.
If someone is attacking our website with many image uploads, we should protect it with atleast rate limits.

But the maximum we can protect ourselves is to set the rate limit to 1 image upload per 30 seconds.

Can we change the setting to "per 5 minutes" or "per hour" or "per day" ... so get ourselves protected from spammers..

Thread Thread
 
maestromac profile image
Mac Siri

Sorry that's also currently not possible. Making rate limit adjustable is a good idea and something in our backlog.