Skip to content

Instantly share code, notes, and snippets.

View Kuznetsov-Ilia's full-sized avatar
🎯
Focusing

Kuznetsov Ilia Kuznetsov-Ilia

🎯
Focusing
View GitHub Profile
@Kuznetsov-Ilia
Kuznetsov-Ilia / nginx.conf
Created October 28, 2016 15:34 — forked from phpdude/nginx.conf
Nginx image filter + caching of results.
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;