This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name img.l; | |
root /var/www/cache/store/ns365; | |
index index.html; | |
# This requests the original file from itself and then resizes the image. | |
location ~ /resize/(\d+)x(\d+)/(.*) { | |
proxy_pass http://img.l/$3; | |
image_filter resize $1 $2; | |
image_filter_jpeg_quality 90; |