README.md

About node-image-proxy

An image proxy written in node.js with a Redis backend, Ready to run on cloud services like CloudFoundry.

What Is This For?

I use posterous to update my blog from iPhone (which is much easier than WordPress's offical client), but the images from posterous are blocked in mainland China by the GFW. This image proxy can by-pass the block by sending the images from your own server.

Why Redis?

node-image-proxy caches not only the image, but also the headers send from the original server. Redis's hset/hget commands can save easily both of them as a set. It's schema-less!

What Else?

examples/image\_request.js - download a file using request and save it to Redis.

examples/image\_recover.js - recover a file from Redis to disk.

Installation

You need to add a simple Javascript to your blog, which let the blocked images be proxied. I wrote a jQuery plugin for that (public/imgProxy.js), but it's very simple and you can rewrite it using whatever you like.