Skip to content

Instantly share code, notes, and snippets.

View kaustubhn's full-sized avatar
🎯
Focusing

Kaustubh kaustubhn

🎯
Focusing
View GitHub Profile
@kaustubhn
kaustubhn / nginx.conf
Created December 11, 2015 07:02 — 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;