Skip to content

Instantly share code, notes, and snippets.

View BaseMax's full-sized avatar
🟢
Online; GitHub, Open Source. Where is money?

Max Base BaseMax

🟢
Online; GitHub, Open Source. Where is money?
View GitHub Profile
@BaseMax
BaseMax / img.l
Last active August 29, 2015 14:12 — forked from webmasterkai/img.l
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;