Experiencing 404 Errors When Using Nginx as Reverse Proxy for imgproxy #20
-
Hi, I'm experiencing a 404 error when trying to load images through Nginx as a reverse proxy for imgproxy. Here are two example URLs where the error occurs:
I've tried the suggested modification of adding Here are some of the errors I'm seeing:
Interestingly, if I query imgproxy directly (bypassing Nginx), the images load correctly without any issues. Additionally, I noticed that if I comment out the following lines in my Nginx configuration, the images start working: docker-imgproxy/nginx/nginx.conf Lines 201 to 202 in 6f30ca6 I've also updated the Nginx configuration as follows, which seems to make it work: docker-imgproxy/nginx/nginx.conf Lines 242 to 245 in 6f30ca6
It seems like these lines are causing the issue, but I'm not entirely sure why. Any insights or suggestions would be greatly appreciated. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello @skinner12, After reviewing the URLs from the log you posted, I noticed that something seems off with the URLs being passed to
Could you show me your settings for the block |
Beta Was this translation helpful? Give feedback.
Hello @skinner12, thank you for your feedback.
It seems that the way this setup is configured doesn't align with your intended usage.
If you want to use the parameters directly in the URL following imgproxy's syntax, then this setup may not work as intended (instead, you might want to directly use it for a container that only runs imgproxy).
My setup aims to create predefined presets with user-friendly keywords (like
_thumbnail
,_medium
,_blurry
, etc.) to mask the parameters that call imgproxy, making the URL more user-friendly and preventing attacks by injecting unnecessary parameters into the imgproxy container.With my setup, you can add definitions for presets sent to imgproxy using s…